﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,.35), transparent 32%),
        radial-gradient(circle at bottom right, rgba(139,92,246,.30), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #172554 45%, #1e3a8a 100%);
    overflow-x: hidden;
}

.auth-bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    z-index: 0;
}

.shape-1 {
    width: 260px;
    height: 260px;
    background: #38bdf8;
    top: 40px;
    left: 40px;
}

.shape-2 {
    width: 320px;
    height: 320px;
    background: #8b5cf6;
    right: 60px;
    bottom: 50px;
}

.shape-3 {
    width: 220px;
    height: 220px;
    background: #22c55e;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    opacity: .25;
}

.auth-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 34px 30px;
    border-radius: 28px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 96px;
    height: 96px;
    padding: 10px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,.96);
    border: 2px solid rgba(255,255,255,.65);
    box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 0 0 1px rgba(37,99,235,.12);
    margin-bottom: 14px;
    filter: none;
}
.auth-brand h1 {
    font-size: 31px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
}

.auth-brand p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,.78);
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.auth-input {
    height: 50px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 0 14px;
    font-size: 15px;
    box-shadow: none;
}

.auth-input::placeholder {
    color: rgba(255,255,255,.62);
}

.auth-input:focus {
    background: rgba(255,255,255,.17);
    color: #fff;
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.10);
}

.password-wrap {
    position: relative;
}

.password-input {
    padding-right: 52px;
}

.password-toggle {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.85);
    position: absolute;
    right: 6px;
    top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle:hover {
    color: #fff;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.88);
    cursor: pointer;
}

.remember-label input {
    cursor: pointer;
}

.login-options a,
.auth-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.login-options a:hover,
.auth-footer a:hover {
    text-decoration: underline;
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 12px;
    align-items: center;
}

.captcha-box {
    height: 50px;
    border-radius: 15px;
    border: 1px dashed rgba(255,255,255,.55);
    background: rgba(255,255,255,.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: 4px;
}

.captcha-refresh {
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background: rgba(255,255,255,.12);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.captcha-refresh:hover {
    background: rgba(255,255,255,.20);
}

.action-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-row .btn,
.action-row a {
    flex: 1;
    height: 50px;
    border-radius: 15px !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border: none;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37,99,235,.40);
}

.btn-login:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
}

.btn-home {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    text-decoration: none;
}

.btn-home:hover {
    background: rgba(255,255,255,.20);
    color: #fff;
}

.google-btn {
    height: 50px;
    border-radius: 15px !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    background: rgba(255,255,255,.08) !important;
    color: rgba(255,255,255,.76) !important;
    font-weight: 700;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

.auth-footer span {
    margin-right: 4px;
}

.msg-label,
.alert {
    display: block;
    border-radius: 15px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.validator-summary {
    border-radius: 15px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(220,53,69,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}

.validator-summary ul {
    margin-bottom: 0;
    padding-left: 18px;
}

@media (max-width: 576px) {
    .auth-wrapper {
        padding: 20px 12px;
    }

    .auth-card {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .auth-brand h1 {
        font-size: 26px;
    }

    .captcha-row {
        grid-template-columns: 1fr 48px;
    }

    .captcha-input {
        grid-column: 1 / -1;
    }

    .action-row {
        flex-direction: column;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 576px) {
    body {
        min-height: 100vh;
        overflow-y: auto;
    }

    .login-wrapper {
        min-height: 100vh;
        padding: 18px 12px;
        align-items: flex-start;
    }

    .login-card {
        max-width: 100%;
        width: 100%;
        padding: 24px 16px;
        border-radius: 20px;
        margin-top: 10px;
    }

    .auth-logo {
        width: 86px;
        height: 86px;
        padding: 9px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .captcha-row {
        display: grid;
        grid-template-columns: 1fr 48px;
        gap: 10px;
    }

    .captcha-box {
        width: 100%;
        min-width: 0;
        height: 48px;
        font-size: 15px;
    }

    .captcha-refresh {
        width: 48px;
        min-width: 48px;
        height: 48px;
    }

    .captcha-input {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .action-row {
        flex-direction: column;
        gap: 10px;
    }

        .action-row .btn,
        .action-row a,
        .google-btn,
        .login-input {
            height: 48px;
        }

    .login-links {
        font-size: 14px;
        line-height: 1.8;
    }
}