/* ===========================================
   TrainMore WiFi Portal
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --primary: #FF0F57;
    --primary-hover: #E6004D;

    --background: #000000;

    --card: rgba(18, 18, 18, 0.92);

    --border: #3b3b3b;

    --text: #ffffff;

    --text-secondary: #bdbdbd;

}

html,
body {

    width: 100%;
    height: 100%;

    font-family: Arial, Helvetica, sans-serif;

    background: var(--background);

    overflow: hidden;

}

/* ===========================================
   Background
   =========================================== */

.background {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background:
        linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.82)),
        url("assets/background.webp");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    z-index: -1;

}

/* ===========================================
   Login Card
   =========================================== */

.container {

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 430px;

    background: var(--card);

    backdrop-filter: blur(8px);

    border-radius: 18px;

    padding: 45px;

    box-shadow: 0 30px 80px rgba(0,0,0,.45);

}

/* ===========================================
   Logo
   =========================================== */

.logo {

    display: block;

    width: 220px;

    margin: 0 auto 35px;

}

/* ===========================================
   Headings
   =========================================== */

h1 {

    color: white;

    text-align: center;

    font-size: 38px;

    margin-bottom: 15px;

}

.subtitle {

    color: var(--text-secondary);

    text-align: center;

    line-height: 1.6;

    margin-bottom: 35px;

    font-size: 16px;

}

/* ===========================================
   Form
   =========================================== */

label {

    display: block;

    color: white;

    margin-bottom: 8px;

    font-size: 14px;

}

input {

    width: 100%;

    padding: 16px;

    border-radius: 8px;

    border: 2px solid var(--border);

    background: #0d0d0d;

    color: white;

    font-size: 16px;

    transition: .25s;

}

input::placeholder {

    color: #777;

}

input:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 4px rgba(255,15,87,.15);

}

/* ===========================================
   Button
   =========================================== */

button {

    width: 100%;

    margin-top: 25px;

    padding: 17px;

    border: none;

    border-radius: 8px;

    background: var(--primary);

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: .25s;

}

button:hover {

    background: var(--primary-hover);

}

button:disabled {

    background: #666;

    cursor: not-allowed;

}

/* ===========================================
   Message
   =========================================== */

#message {

    margin-top: 20px;

    min-height: 20px;

    color: #ff7070;

    text-align: center;

    font-size: 14px;

}

/* ===========================================
   Loading
   =========================================== */

#loading {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.88);

    justify-content: center;

    align-items: center;

    flex-direction: column;

    z-index: 999;

}

.spinner {

    width: 65px;

    height: 65px;

    border-radius: 50%;

    border: 6px solid rgba(255,255,255,.15);

    border-top-color: var(--primary);

    animation: spin 1s linear infinite;

    margin-bottom: 25px;

}

#loading p {

    color: white;

    font-size: 20px;

}

@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}

/* ===========================================
   Mobile
   =========================================== */

@media (max-width: 600px) {

    .container {

        width: calc(100% - 40px);

        padding: 30px;

    }

    .logo {

        width: 180px;

    }

    h1 {

        font-size: 30px;

    }

}