/* Start Add of Code for Migrating to Google based Login by Alex David on 05-06-2026 */
/* Full redesign of login page for Google OAuth migration */

*, *::before, *::after {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ── Card ── */
.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 420px;
    max-width: 92vw;
    padding: 48px 44px 40px;
    text-align: center;
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.login-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto 28px;
}

/* ── Divider ── */
.login-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0 0 28px;
}

/* ── Title ── */
.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

/* ── Subtitle ── */
.login-subtitle {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0 0 32px;
    line-height: 1.5;
}

.login-subtitle span {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-top: 3px;
    font-size: 12.5px;
}

/* ── Error alert ── */
.login-error {
    background: #fff2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13.5px;
    padding: 10px 14px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.5;
}

/* ── Google button ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 11px 20px;
    background: #ffffff;
    border: 1.5px solid #dadce0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #3c4043;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 1px 3px rgba(60,64,67,0.12);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c9cc;
    box-shadow: 0 2px 8px rgba(60,64,67,0.22);
    color: #3c4043;
    text-decoration: none;
}

.btn-google:active {
    background: #f1f3f4;
    box-shadow: none;
}

.btn-google .google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Footer note ── */
.login-footer {
    margin-top: 28px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
}

/* ── Admin login link (superuser) ── */
.login-admin-link {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    color: #d1d5db;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.login-admin-link:hover {
    opacity: 1;
    color: #d1d5db;
    text-decoration: none;
}

/* ── Admin login page ── */
.admin-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.form-field {
    width: 100%;
    text-align: left;
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14.5px;
    color: #1f2937;
    background: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66,133,244,0.18);
    background: #fff;
    outline: none;
}

.btn-admin-login {
    display: block;
    width: 100%;
    height: 44px;
    background: #1a1a2e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    margin-top: 8px;
}

.btn-admin-login:hover {
    background: #0f3460;
    box-shadow: 0 4px 12px rgba(15,52,96,0.35);
}

/* ── Legacy class kept for partial compatibility ── */
.content.mt-3.container { display: none; }
/* End Add of Code for Migrating to Google based Login by Alex David on 05-06-2026 */
