﻿
* {
    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(13,110,253,0.30), transparent 30%), radial-gradient(circle at bottom right, rgba(102,16,242,0.25), transparent 28%), linear-gradient(135deg, #0f172a 0%, #172554 35%, #1e3a8a 70%, #0f172a 100%);
    overflow-x: hidden;
}

.bg-blur-1,
.bg-blur-2,
.bg-blur-3 {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    z-index: 0;
}

.bg-blur-1 {
    width: 260px;
    height: 260px;
    background: #38bdf8;
    top: 40px;
    left: 40px;
}

.bg-blur-2 {
    width: 320px;
    height: 320px;
    background: #8b5cf6;
    bottom: 60px;
    right: 50px;
}

.bg-blur-3 {
    width: 220px;
    height: 220px;
    background: #60a5fa;
    top: 48%;
    left: 52%;
    transform: translate(-50%, -50%);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 34px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #ffffff;
}

.login-logo {
    max-height: 80px;
    max-width: 100%;
    display: block;
    margin: 0 auto 14px auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

.login-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
    letter-spacing: .2px;
}

.login-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.80);
    font-size: 14px;
    margin-bottom: 24px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.login-input {
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    padding: 0 14px;
    font-size: 15px;
    box-shadow: none;
}

    .login-input::placeholder {
        color: rgba(255,255,255,0.65);
    }

    .login-input:focus {
        background: rgba(255,255,255,0.16);
        color: #ffffff;
        border-color: rgba(255,255,255,0.45);
        box-shadow: 0 0 0 0.18rem rgba(255,255,255,0.10);
    }

.password-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: rgba(255,255,255,0.85);
}

.form-check-label {
    color: rgba(255,255,255,0.88);
}

.form-check-input {
    cursor: pointer;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.captcha-box {
    flex: 1;
    height: 50px;
    min-width: 110px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
}

.captcha-refresh {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 20px;
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
}

    .captcha-refresh:hover {
        background: rgba(255,255,255,0.20) !important;
        color: #ffffff !important;
    }

.captcha-input {
    flex: 1;
    min-width: 140px;
}

.action-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

    .action-row .btn,
    .action-row a {
        flex: 1;
        height: 50px;
        border-radius: 14px !important;
        font-weight: 600;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

.btn-login {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

    .btn-login:hover {
        background: linear-gradient(135deg, #1d4ed8, #2563eb);
        color: #ffffff;
    }

.btn-home {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #ffffff;
}

    .btn-home:hover {
        background: rgba(255,255,255,0.20);
        color: #ffffff;
    }

.google-btn {
    height: 50px;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.75) !important;
    font-weight: 600;
}

.login-links {
    margin-top: 18px;
    text-align: center;
    color: rgba(255,255,255,0.75);
}

    .login-links a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 500;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

.msg-label {
    display: block;
    margin-bottom: 16px;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
}

.validator-summary ul {
    margin-bottom: 0;
    padding-left: 18px;
}

.validator-summary {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(220,53,69,0.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 576px) {
    .login-card {
        padding: 28px 18px;
        border-radius: 22px;
    }

    .login-title {
        font-size: 26px;
    }

    .captcha-row,
    .action-row {
        gap: 10px;
    }

    .captcha-box {
        min-width: 92px;
        letter-spacing: 2px;
        font-size: 14px;
    }

    .captcha-input {
        min-width: 110px;
    }
}