/* Auth Layout Enhancements - Full Page Version */
.auth-body {
    background: linear-gradient(
        135deg,
        rgba(255, 131, 67, 0.05) 0%,
        #ffffff 50%,
        rgba(107, 114, 128, 0.05) 100%
    );
    font-family: "Inter", sans-serif;
    min-height: 100vh;
}

.auth-container {
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    width: 100%;
    display: flex;
    height: 100%;
}

.auth-form-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafafa;
    background-image: radial-gradient(
            circle at 25% 25%,
            rgba(255, 131, 67, 0.02) 0%,
            transparent 25%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(107, 114, 128, 0.02) 0%,
            transparent 25%
        );
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(10px, -10px) rotate(1deg);
    }
    66% {
        transform: translate(-5px, 5px) rotate(-1deg);
    }
}

.brand-logo {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

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

.brand-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        rgba(255, 255, 255, 0.8) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.auth-features li:hover {
    opacity: 1;
}

.auth-features li::before {
    content: "✓";
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-container {
    max-width: 420px;
    width: 100%;
}

.form-tabs {
    display: flex;
    background: #f1f3f4;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.form-tab {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form-tab.active {
    background: white;
    color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    color: #495057;
}

.form-tab i {
    font-size: 0.875rem;
}

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

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 131, 67, 0.15);
    background: white;
}

.form-control-with-icon {
    position: relative;
}

.form-control-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
    z-index: 2;
}

.form-control-with-icon .form-control {
    padding-left: 2.75rem;
}

.form-control-with-icon .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: color 0.2s ease;
}

.form-control-with-icon .password-toggle:hover {
    color: #6b7280;
}

.btn-auth .spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

.btn-auth:disabled .spinner {
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.form-check-custom {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.form-check-custom .form-check-input {
    margin: 0;
    margin-top: 0.125rem;
    width: 1.2em;
    height: 1.2em;
}

.form-check-custom .form-check-label {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: #6b7280;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #ff9a5a;
    text-decoration: underline;
}

.alert-custom {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    color: #dc2626;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border-left: 4px solid #ef4444;
}

@media (max-width: 768px) {
    .auth-form-section {
        padding: 2rem;
        min-height: auto;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

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

    .form-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .brand-logo {
        width: 56px;
        height: 56px;
        margin-bottom: 1.5rem;
    }

    .brand-logo span {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .auth-form-section {
        padding: 1.5rem;
    }

    .form-tab span {
        display: none;
    }

    .form-tab {
        padding: 0.75rem;
    }

    .form-control {
        padding: 0.625rem 0.875rem;
    }

    .form-control-with-icon .form-control {
        padding-left: 2.5rem;
    }

    .btn-auth {
        padding: 0.875rem 1.25rem;
    }
}

/* Animation untuk loading state */
.form-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Custom scrollbar untuk form yang panjang */
.auth-form-section::-webkit-scrollbar {
    width: 4px;
}

.auth-form-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.auth-form-section::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 2px;
}

.auth-form-section::-webkit-scrollbar-thumb:hover {
    background: #ff9a5a;
}
