:root {
    --primary: #D64541; /* Merah logo */
    --secondary: #F28C28; /* Orange logo */
    --accent: #F7C948; /* Kuning */
    --bg-cream: #FAF8F5;
    --text-dark: #222222;
    --primary-dark: #b91c1c;
}

* { font-family: 'Plus Jakarta Sans', sans-serif; }

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-cream);
    background-image: radial-gradient(circle at top left, rgba(242, 140, 40, 0.05), transparent),
                      radial-gradient(circle at bottom right, rgba(247, 201, 72, 0.1), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.5rem 0;
    color: var(--text-dark);
}

/* Subtle black accent blobs */
body::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    background: rgba(214, 69, 65, 0.02);
    border-radius: 50%;
    top: -200px; right: -200px;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-logo img {
    transition: transform 0.3s ease;
}

.auth-logo img:hover {
    transform: scale(1.05);
}

.auth-card {
    background: white;
    border-radius: 30px;
    padding: 2.5rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -1px;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: #555555;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.form-control {
    border-radius: 14px;
    padding: 0.75rem 1.125rem;
    border: 1.5px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(214, 69, 65, 0.1);
    outline: none;
}

.btn-auth {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 0.875rem;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
    box-shadow: 0 10px 15px -3px rgba(214, 69, 65, 0.3);
    transition: all 0.3s;
}

.btn-auth:hover {
    background: #b23936;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(214, 69, 65, 0.4);
    color: white;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.25s;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.alert-auth {
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: none;
    background: #fee2e2;
    color: #b91c1c;
}

.invalid-feedback {
    font-weight: 600;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

@media (max-height: 800px) {
    body {
        padding: 1rem 0;
    }

    .auth-logo {
        margin-bottom: 0.75rem;
    }

    .auth-logo img {
        max-height: 75px !important;
    }

    .auth-card {
        padding: 1.75rem 2rem;
    }

    .auth-subtitle {
        margin-bottom: 1.25rem;
    }
}

/* Password Toggle Eye Button */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 2.75rem !important;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
}

.btn-toggle-password:hover {
    color: var(--primary, #D64541);
}

.btn-toggle-password:focus-visible {
    outline: 2px solid rgba(214, 69, 65, 0.3);
}
