body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top, rgba(132, 171, 214, 0.22), transparent 40%),
        linear-gradient(180deg, #e4edef 0%, #dbe9eb 100%);
}

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 20px;
    box-sizing: border-box;
}

.login-header {
    text-align: center;
    color: #3f4b5c;
    margin-bottom: 30px;
    max-width: 520px;
}

.logo-slot {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.logo-box {
    background: linear-gradient(135deg, #5d7fb8, #4f72ad);
    color: white;
    font-size: 32px;
    font-weight: 700;
    padding: 16px 42px;
    border-radius: 18px;
    letter-spacing: 4px;
    box-shadow: 0 10px 24px rgba(82, 120, 179, 0.18);
}

.login-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #3f4b5c;
    line-height: 1.35;
}

.login-card {
    width: min(100%, 440px);
    background: rgba(247, 247, 247, 0.96);
    border-radius: 22px;
    padding: 34px 32px 28px;
    box-shadow: 0 18px 42px rgba(31, 45, 68, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.login-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #1f2d44;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0 0 24px;
    color: #6d7485;
    font-size: 14px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cfd5de;
    background: #eef0f3;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.input-field:focus {
    outline: none;
    border-color: #6b8ec4;
    background: #f8fbff;
    box-shadow: 0 0 0 3px rgba(82, 120, 179, 0.12);
}

.input-field::placeholder {
    color: #8b95a7;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .input-field {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg {
    transition: 0.2s ease;
}

.toggle-password:hover svg {
    stroke: #5278b3;
}

.forgot-password {
    margin-top: -4px;
    margin-bottom: 18px;
    text-align: right;
}

.forgot-password a,
.back-link a {
    font-size: 13px;
    color: #5278b3;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.forgot-password a:hover,
.back-link a:hover {
    text-decoration: underline;
}

.recaptcha-shell {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    padding: 2px 0;
}

.recaptcha-shell .g-recaptcha {
    display: inline-block;
}

.login-button {
    width: 100%;
    margin-top: 4px;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #5b7fb8, #4f72ad);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 18px rgba(82, 120, 179, 0.18);
}

.login-button:hover {
    background: linear-gradient(135deg, #4f72ad, #45689d);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.copyright {
    margin-top: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

.app-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.app-flash-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.app-flash-body {
    flex: 1;
}

.app-flash-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    opacity: 0.75;
}

.app-flash-close:hover {
    opacity: 1;
}

.app-flash-error {
    background: #fdecec;
    border-color: #fecaca;
    color: #dc2626;
}

.app-flash-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #15803d;
}

.app-flash-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c05621;
}

.app-flash-info {
    background: #e8f1ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.back-link {
    text-align: center;
    margin-top: 16px;
}

.back-link.form-link-left {
    text-align: left;
}

.field-error {
    margin-top: 8px;
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    line-height: 1.4;
}

.password-strength-wrapper {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.strength-text {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.password-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #8b95a7;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .login-page {
        padding: 28px 16px;
        justify-content: center;
    }

    .login-header {
        margin-bottom: 22px;
    }

    .login-header h1 {
        font-size: 17px;
    }

    .login-card {
        padding: 26px 20px 22px;
        border-radius: 20px;
    }

    .login-card h2 {
        font-size: 24px;
    }

    .subtitle {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 22px 14px;
    }

    .login-card {
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .logo-box {
        font-size: 28px;
        padding: 14px 34px;
        border-radius: 16px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .login-button {
        padding: 12px;
    }

    .message {
        padding: 11px 12px;
    }

    .login-footer {
        margin-top: 20px;
    }

    .copyright {
        margin-top: 12px;
    }
}

@media (max-width: 380px) {
    .login-card h2 {
        font-size: 22px;
    }

    .login-header h1 {
        font-size: 16px;
    }

    .recaptcha-shell {
        justify-content: flex-start;
        min-height: 70px;
    }

    .recaptcha-shell .g-recaptcha {
        transform: scale(0.88);
        transform-origin: left top;
    }
}
