﻿/* Base styles for all auth pages */
.wgms-copyright {
    margin-top: 8px;
    color: #7d8a9f;
    font-size: 12px;
}
.wgms-divider {
    border: none;
    height: 1px;
    background: rgba(59,130,246,0.15);
    margin: 20px 0 16px 0;
}
a {
    color: #93c5fd;
    text-decoration: none;
}

    a:visited {
        color: #93c5fd; /* Same as normal links - no purple! */
    }

    a:hover {
        color: #3b82f6;
        text-decoration: underline;
    }

    a:active {
        color: #3b82f6;
    }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
}

body {
    background: #0b1020;
    color: #e8eefc;
}

/* Dark overlay */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,16,32,0.75);
    z-index: 0;
}

/* Common shell container */
.wgms-auth-shell,
.mfa-shell,
.auth-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Common card styles */
.wgms-card,
.mfa-card,
.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.55);
    padding: 32px;
    color: #e8eefc;
}

/* Logo in top-left corner of page */
.auth-logo-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 32px;
    background: linear-gradient(180deg, rgba(11,16,32,0.9) 0%, rgba(11,16,32,0.7) 70%, transparent 100%);
}

    .auth-logo-header .auth-logo {
        width: 250px; /* Increased from 220px */
        height: auto;
        display: block;
        filter: brightness(0) invert(1);
        opacity: 0.95;
    }

/* Logo */
.auth-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

/* Alternative: Logo in top-left of card */
.wgms-card-header {
    margin-bottom: 24px;
}

    .wgms-card-header .auth-logo {
        width: 200px;
        margin: 0 0 20px 0;
    }

/* Title styles */
.wgms-title,
.mfa-title,
.auth-title {
    margin: 0 0 1rem;
    font-size: 28px;
    font-weight: 600;
    color: #e8eefc;
}

.mfa-title {
    font-size: 26px;
    text-align: center;
}

/* Subtitle styles */
.wgms-sub,
.mfa-sub,
.auth-sub {
    margin: 0 0 18px;
    color: #9bb0d1;
    font-size: 14px;
}

.mfa-sub {
    text-align: center;
}

/* Label styles */
.wgms-label,
.mfa-label,
.form-label {
    display: block;
    font-size: 12px;
    color: #9bb0d1;
    margin: 14px 0 6px;
}

.form-label {
    color: #e8eefc;
    font-size: 14px;
    font-weight: 500;
}

/* Input styles */
.wgms-input,
.wgms-select,
.mfa-input,
.form-input,
.auth-input {
    width: 100%;
    padding: 12px 14px;
    background: #0b1328;
    border: 1px solid #1f2a44;
    color: #e8eefc;
    border-radius: 12px;
    box-sizing: border-box;
}

.wgms-input,
.wgms-select {
    height: 48px;
}

.mfa-input {
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 4px;
}

.auth-input {
    text-align: center;
    font-size: 20px;
    letter-spacing: 4px;
    margin-top: 18px;
}

.form-input {
    font-size: 15px;
}

    /* Input focus states */
    .wgms-input:focus,
    .wgms-select:focus,
    .mfa-input:focus,
    .form-input:focus,
    .auth-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,.25);
        outline: none;
    }

/* Button styles */
.wgms-btn,
.mfa-btn,
.auth-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px 16px;
    font-weight: 600;
    border: 0;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    background: linear-gradient(90deg,#1d4ed8,#3b82f6);
    box-shadow: 0 10px 22px rgba(59,130,246,.35);
    transition: filter 0.2s;
}

.mfa-btn,
.auth-btn {
    margin-top: 22px;
}

.auth-btn {
    font-size: 15px;
    margin-top: 24px;
}

    .wgms-btn:hover,
    .mfa-btn:hover,
    .auth-btn:hover {
        filter: brightness(1.05);
    }

    .wgms-btn:disabled,
    .auth-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Meta/footer links */
.wgms-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 14px;
    color: #9bb0d1;
}

    .wgms-meta a {
        color: #93c5fd;
        text-decoration: none;
    }

        .wgms-meta a:hover {
            text-decoration: underline;
        }

.wgms-foot {
    margin-top: 16px;
    color: #9bb0d1;
    font-size: 11px;
}

/* Error/validation messages */
.text-danger {
    color: #f87171;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.validation-summary-errors,
.wgms-notification {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #fca5a5;
    font-size: 14px;
    line-height: 1.5;
}

.wgms-notification {
    display: none;
}

    .wgms-notification:not(:empty) {
        display: block;
    }

    .validation-summary-errors:empty,
    .wgms-notification.validation-summary-valid {
        display: none;
    }

    .validation-summary-errors ul,
    .wgms-notification ul {
        margin: 0;
        padding: 0 0 0 20px;
        list-style: disc;
    }

    .validation-summary-errors li,
    .wgms-notification li {
        margin: 4px 0;
    }

/* Success alert */
.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Remember me checkbox */
.mfa-remember {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9bb0d1;
}

/* Password requirements */
.password-requirements {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #9bb0d1;
    line-height: 1.5;
}

    .password-requirements strong {
        color: #e8eefc;
    }

    .password-requirements ul {
        margin: 8px 0 0 0;
        padding-left: 20px;
    }

    .password-requirements li {
        margin: 4px 0;
    }

/* QR Code (for authenticator pages) */
.qr-box {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
    margin: 18px 0;
}

    .qr-box img {
        display: block;
        width: 200px;
        height: 200px;
    }

.manual-key {
    margin: 12px 0;
    color: #e8eefc;
}

    .manual-key small {
        display: block;
        color: #9bb0d1;
        margin-bottom: 4px;
    }

    .manual-key .key {
        font-weight: bold;
        font-size: 14px;
        letter-spacing: 1px;
        word-break: break-all;
        line-height: 1.4;
    }
.mfa-error {
    background-color: #fee;
    border: 1px solid #c33;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

    .mfa-error ul {
        margin: 0;
        padding-left: 20px;
    }
/* Mobile responsiveness */
@media (max-width: 980px) {
    .wgms-auth-shell,
    .auth-shell {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .mfa-card,
    .auth-card {
        padding: 22px;
        border-radius: 14px;
    }

    .mfa-input,
    .auth-input {
        font-size: 18px;
    }

    .manual-key .key {
        font-size: 12px;
    }
}
