/* ========================================
   STYLESHEET HALAMAN AUTH - DARK THEME
   ======================================== */

/* RESET UNTUK HALAMAN AUTH */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #0f172a;
}

/* AUTH CONTAINER - FULL DARK BACKGROUND */
.auth-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    background: #0f172a;
    position: relative;
    overflow-y: auto;
}

/* GRADIENT OVERLAY - FULL SCREEN */
.auth-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* GRID PATTERN BACKGROUND - FULL SCREEN */
.auth-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* AUTH BOX - DARK CARD */
.auth-box {
    background: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
    margin: 0 auto;
}

.auth-box-large {
    max-width: 550px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AUTH HEADER */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    animation: bounceIn 0.8s ease-out;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.auth-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ALERT ANIMATED */
.alert-animated {
    animation: slideDown 0.4s ease-out;
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FORM STYLING */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label svg {
    color: #6366f1;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    color: #f1f5f9;
}

.form-input::placeholder {
    color: #64748b;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* PASSWORD WRAPPER */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #6366f1;
}

/* FORM OPTIONS */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    cursor: pointer;
}

.checkbox-label input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.link-forgot {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s;
}

.link-forgot:hover {
    color: #a855f7;
}

/* SUBMIT BUTTON - FIXED */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-submit svg {
    position: relative;
    z-index: 1;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:active {
    transform: translateY(0);
}

/* AUTH FOOTER */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.auth-footer p {
    color: #94a3b8;
    margin: 0;
}

.link-register,
.link-login {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link-register:hover,
.link-login:hover {
    color: #a855f7;
}

/* DECORATIVE ELEMENTS - FULL SCREEN */
.auth-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite 1s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: -75px;
    animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* RESPONSIVE */
@media (max-width: 576px) {
    .auth-container {
        padding: 5rem 1rem 2rem;
    }

    .auth-box {
        padding: 2rem 1.5rem;
        margin: 0 auto;
    }

    .auth-header h3 {
        font-size: 1.5rem;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 5.5rem 1.5rem 2rem;
    }
}

/* LOADING STATE */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* FOCUS VISIBLE */
.btn-submit:focus-visible,
.form-input:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

/* SMOOTH TRANSITIONS */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* FIX UNTUK NAVBAR DI HALAMAN AUTH */
nav {
    position: relative;
    z-index: 100;
}

/* SCROLLBAR STYLING */
.auth-container::-webkit-scrollbar {
    width: 8px;
}

.auth-container::-webkit-scrollbar-track {
    background: #0f172a;
}

.auth-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 4px;
}

.auth-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
}