/* ===================================================
   QBits SaaS – Auth Pages (Login & Register)
   Bootstrap 3.3.7 base | .NET 4.5
   =================================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    background: #0f1b30;
}

/* ---- Full-screen background gradient -------------- */
.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1b30 0%, #1a2d4a 50%, #1d4ed8 100%);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ---- Auth card ------------------------------------ */
.auth-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 440px;
    padding: 36px 40px 32px;
}

/* ---- Logo ----------------------------------------- */
.auth-logo {
    text-align: center;
    margin-bottom: 6px;
}
.auth-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #1a2742;
    letter-spacing: 1px;
}
.auth-logo-text span {
    color: #1d4ed8;
}
.auth-logo-sub {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    text-align: center;
    margin-bottom: 22px;
}
.auth-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    text-align: center;
}
.auth-subtitle {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 22px;
}

/* ---- Form fields ---------------------------------- */
.auth-form-group {
    margin-bottom: 14px;
}
.auth-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-form-group label .opt {
    font-weight: 400;
    text-transform: none;
    color: #9ca3af;
    letter-spacing: 0;
}
.auth-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
    color: #111827;
    background: #fff;
    -webkit-transition: border-color 0.15s;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.auth-input:focus {
    border-color: #1d4ed8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
}
.auth-input.input-error {
    border-color: #dc2626;
}

/* validator messages */
.auth-validator {
    color: #dc2626;
    font-size: 11px;
    margin-top: 3px;
    display: block;
}

/* password row (two columns) */
.auth-row {
    display: -webkit-flex;
    display: flex;
    gap: 10px;
}
.auth-row .auth-form-group {
    -webkit-flex: 1;
    flex: 1;
}

/* ---- Remember Me ---------------------------------- */
.auth-remember {
    margin: -2px 0 14px;
}
.auth-remember label {
    display:     flex;
    align-items: center;
    gap:         7px;
    font-size:   13px;
    font-weight: 400;
    color:       #374151;
    cursor:      pointer;
    margin:      0;
    user-select: none;
}
.auth-remember input[type="checkbox"] {
    width:  15px;
    height: 15px;
    cursor: pointer;
    accent-color: #1d4ed8;
    flex-shrink: 0;
}

/* ---- Buttons -------------------------------------- */
.btn-auth-primary {
    width: 100%;
    height: 42px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    margin-bottom: 10px;
    -webkit-transition: background 0.15s;
    transition: background 0.15s;
    display: block;
    text-align: center;
    line-height: 42px;
    text-decoration: none;
}
.btn-auth-primary:hover {
    background: #1e40af;
    color: #fff;
    text-decoration: none;
}

/* Google button */
.btn-google {
    width: 100%;
    height: 42px;
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    -webkit-transition: background 0.15s, border-color 0.15s;
    transition: background 0.15s, border-color 0.15s;
}
.btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
}
.btn-google svg {
    width: 18px;
    height: 18px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #9ca3af;
    font-size: 11px;
}
.auth-divider:before,
.auth-divider:after {
    content: '';
    -webkit-flex: 1;
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Status / alert messages */
.auth-alert {
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
    display: block;
}
.auth-alert-danger  { background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }
.auth-alert-success { background:#d1fae5; color:#065f46; border:1px solid #6ee7b7; }
.auth-alert-info    { background:#dbeafe; color:#1e3a8a; border:1px solid #93c5fd; }

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #6b7280;
}
.auth-footer a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* Google-info notice (shown on Google-initiated register) */
.google-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 12px;
    color: #1e40af;
    margin-bottom: 16px;
}
.google-notice svg { vertical-align: middle; margin-right: 5px; }

/* Register card is slightly wider */
.auth-card-wide {
    max-width: 500px;
}
