:root {
    --brand-1: #4f46e5;
    --brand-2: #6366f1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 45%, #818cf8 100%);
    position: relative;
    overflow: hidden;
}

/* Dekorasi lingkaran blur di background */
body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    z-index: 0;
}

body::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -120px;
}

body::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: -100px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(31, 41, 55, 0.25);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s ease-out;
}

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

.brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -52px auto 16px;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.35);
}

.brand-icon i {
    font-size: 28px;
    color: #fff;
}

.form-label {
    font-size: 0.85rem;
    color: #374151;
}

.form-control {
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.form-control:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
    background-color: #fff;
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-right: none;
    color: #9ca3af;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--brand-2);
}

.toggle-password {
    cursor: pointer;
    border-radius: 0 10px 10px 0 !important;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    border: none;
    border-radius: 10px;
    padding: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.35);
    color: #fff;
}

.form-check-input:checked {
    background-color: var(--brand-1);
    border-color: var(--brand-1);
}

.footer-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}
