/* ============================================================
   Login Page Styles — AUDC Brand
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ---- Full-screen gradient background ---- */
.container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0069B4 0%, #35D2D0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

/* ---- Login card ---- */
.login-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    padding: 40px 36px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 420px;
}

/* ---- Logo ---- */
.signin-form-logo {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 24px;
}

/* ---- Heading ---- */
.login-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 28px;
    letter-spacing: 0.2px;
}

/* ---- Form ---- */
.login-box form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---- Input groups ---- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.input-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    color: #222222;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    outline: none;
    background-color: #F4F6F7;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-group input:hover {
    border-color: #63DDE0;
}

.input-group input:focus {
    border-color: #0069B4;
    box-shadow: 0 0 0 3px rgba(0, 105, 180, 0.14);
    background-color: #ffffff;
}

/* ---- Sign-in button ---- */
.login-box .button {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.6px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #0069B4 0%, #35D2D0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.login-box .button:hover:not(:disabled) {
    filter: brightness(108%);
    box-shadow: 0 6px 18px rgba(0, 105, 180, 0.38);
}

.login-box .button:active:not(:disabled) {
    filter: brightness(96%);
    box-shadow: 0 2px 6px rgba(0, 105, 180, 0.25);
}

.login-box .button:focus-visible {
    outline: 3px solid #35D2D0;
    outline-offset: 3px;
}

.login-box .button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Override base .loading to be inline (not absolute) inside login button */
.login-box .button .loading {
    position: static;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Footer ---- */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 105, 180, 0.35);
    letter-spacing: 0.2px;
}

.login-footer strong {
    color: #ffffff;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .login-box {
        padding: 32px 22px 36px;
        border-radius: 12px;
    }

    .login-box h2 {
        font-size: 22px;
    }

    .signin-form-logo {
        height: 44px;
    }
}
