/* Login page - Colvatel */
body.login-body {
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 120, 212, .16) 0, transparent 30%),
        radial-gradient(circle at 82% 82%, rgba(18, 64, 110, .14) 0, transparent 32%),
        linear-gradient(135deg, #F7FBFF 0%, #EAF4FB 52%, #FFFFFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    position: relative;
}

.login-bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(4px);
    opacity: .45;
    pointer-events: none;
}

.shape-one {
    width: 280px;
    height: 280px;
    left: -90px;
    top: -70px;
    background: rgba(0, 120, 212, .16);
}

.shape-two {
    width: 340px;
    height: 340px;
    right: -120px;
    bottom: -130px;
    background: rgba(18, 64, 110, .12);
}

.login-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(18, 64, 110, .08);
    border-radius: 18px;
    padding: 36px 36px 32px;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 22px 70px rgba(18, 64, 110, .16);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.login-card-animated {
    animation: loginEnter .55s ease-out both;
}

@keyframes loginEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 22px;
    text-align: center;
}

.login-logo img {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.login-title {
    text-align: center;
    margin-bottom: 24px;
}

.login-title h2 {
    font-size: 22px;
    color: #123F6E;
    margin: 0 0 6px;
    font-weight: 700;
}

.login-title p {
    font-size: 12px;
    color: #536B82;
    margin: 0;
}

.login-link {
    color: #0078D4;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover,
.terms-check a:hover {
    text-decoration: underline;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #536B82;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.password-toggle:hover {
    background: rgba(0, 120, 212, .08);
    color: #0078D4;
}

.login-row {
    align-items: center;
}

.form-check input {
    accent-color: #0078D4;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.35;
    color: #2C3E50;
    cursor: pointer;
}

.terms-check input {
    margin-top: 2px;
    flex: 0 0 auto;
}

.terms-check a {
    color: #0078D4;
    font-weight: 700;
    text-decoration: none;
}

.login-submit {
    justify-content: center;
    padding: 12px 14px !important;
    min-height: 44px;
    border-radius: 8px;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}

.login-submit:not(:disabled) {
    background: #0078D4;
    border-color: #0078D4;
    box-shadow: 0 10px 20px rgba(0, 120, 212, .22);
}

.login-submit:not(:disabled):hover {
    background: #005A9E;
    border-color: #005A9E;
    transform: translateY(-1px);
}

.login-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.login-submit.is-loading .btn-content {
    display: none;
}

.login-submit.is-loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 11px;
    color: #6C757D;
}

.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }

@media (max-width: 480px) {
    body.login-body {
        padding: 14px;
        overflow: auto;
    }

    .login-card {
        padding: 30px 24px 26px;
        border-radius: 16px;
    }

    .login-logo img {
        width: 235px;
    }

    .login-row {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
}
