/* ============================================
   GUEST AUTH - MODERN SPLIT SCREEN LAYOUT
   ============================================ */

/* Main wrapper - Split Screen Layout */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}

/* ============================================
   LEFT SIDE - INFO SECTION
   ============================================ */

.auth-info-section {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Animasi background bubbles untuk info section */
.auth-info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: bubbleFloat 20s linear infinite;
    z-index: 0;
}

@keyframes bubbleFloat {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.auth-info-content {
    position: relative;
    z-index: 1;
}

/* Logo di info section */
.auth-info-logo {
    margin-bottom: 3rem;
    animation: fadeInLeft 0.6s ease-out;
    display: flex;
    justify-content: center;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-info-logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-info-logo-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: logoShine 4s infinite;
}

@keyframes logoShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.auth-info-logo-circle i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.auth-info-logo:hover .auth-info-logo-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* App title & description */
.auth-info-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInLeft 0.6s ease-out 0.1s both;
}

.auth-info-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

/* Features list */
.auth-features-list {
    margin-bottom: 3rem;
    animation: fadeInLeft 0.6s ease-out 0.3s both;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: white;
}

.auth-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.auth-feature-item:hover .auth-feature-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.auth-feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-feature-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}


/* ============================================
   RIGHT SIDE - FORM SECTION
   ============================================ */

.auth-form-section {
    flex: 1;
    background: #f9fafb;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto;
}

/* Container card utama */
.auth-card-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

/* Card form utama - Enhanced dengan glassmorphism */
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    animation: fadeInRight 0.6s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header card dengan Logo */
.auth-card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.auth-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-logo-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.auth-logo-circle i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.auth-card-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Input group dengan icon - Redesigned */
.auth-input-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.auth-input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.625rem;
    letter-spacing: 0.01em;
}

/* Outer wrapper untuk icon dan input */
.auth-input-outer-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-input-icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input-outer-wrapper:focus-within .auth-input-icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: scale(1.05);
}

.auth-input-wrapper {
    position: relative;
    flex: 1;
    background: #f9fafb;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.auth-input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input-wrapper:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.auth-input-wrapper:focus-within::before {
    transform: scaleX(1);
}

.auth-input-icon {
    color: #9ca3af;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.auth-input-outer-wrapper:focus-within .auth-input-icon {
    color: white;
}

.auth-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent;
    outline: none;
    color: #1f2937;
    font-weight: 500;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
}

.auth-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Password toggle button - Enhanced */
.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.1);
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.auth-password-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-50%) scale(1.1);
    color: #764ba2;
}

.auth-password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Error messages - Enhanced */
.auth-input-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    animation: slideDown 0.3s ease;
}

.auth-input-error i {
    font-size: 0.75rem;
}

.auth-input-wrapper.has-error,
.auth-input-group.has-error .auth-input-wrapper {
    border-color: #ef4444;
    background: #fef2f2;
}

.auth-input-group.has-error .auth-input-icon-wrapper {
    background: #fef2f2;
    border-color: #ef4444;
}

.auth-input-group.has-error .auth-input-icon {
    color: #ef4444;
}

.auth-input-group.has-error .auth-input-wrapper::before {
    background: #ef4444;
    transform: scaleX(1);
}

.auth-input.error {
    color: #ef4444;
}

.auth-input-wrapper:focus-within.has-error {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

/* Remember me & Forgot Password Row */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Remember me checkbox - Enhanced */
.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.auth-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    background: white;
    margin: 0;
}

.auth-checkbox::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: white;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
}

.auth-checkbox:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.auth-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.auth-checkbox:focus {
    outline: 2px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

.auth-checkbox-label {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-checkbox-wrapper:hover .auth-checkbox-label {
    color: #667eea;
}

/* Forgot Password Link */
.auth-forgot-link {
    font-size: 0.875rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.auth-forgot-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.auth-forgot-link:hover {
    color: #764ba2;
}

.auth-forgot-link:hover::after {
    width: 100%;
}

/* Submit Button - Redesigned */
.auth-button-primary {
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.01em;
}

.auth-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.auth-button-primary:hover::before {
    left: 100%;
}

.auth-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.auth-button-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.3s ease;
}

.auth-button-primary i {
    font-size: 1rem;
}

.auth-button-loader {
    display: none;
    align-items: center;
    justify-content: center;
}

/* Loading state untuk button */
.auth-button-primary.loading {
    pointer-events: none;
}

.auth-button-primary.loading .auth-button-text {
    opacity: 0;
}

.auth-button-primary.loading .auth-button-loader {
    display: flex;
    position: absolute;
}

.auth-button-primary.loading .auth-button-loader i {
    font-size: 1.25rem;
}

/* Footer dengan register link - Redesigned */
.auth-card-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-footer-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.auth-register-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 2px solid transparent;
}

.auth-register-link:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.auth-register-link i {
    font-size: 0.875rem;
}

/* Status messages - Enhanced */
.auth-status-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease;
    font-weight: 500;
}

.auth-status-message i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.auth-status-message span {
    flex: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-status-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.auth-status-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.1);
}

.auth-status-message.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: rgba(31, 41, 55, 0.95);
    }
    
    .auth-card-title {
        color: #f9fafb;
    }
    
    .auth-card-subtitle {
        color: #d1d5db;
    }
    
    .auth-input-label {
        color: #e5e7eb;
    }
    
    .auth-input {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .auth-input:focus {
        border-color: #667eea;
    }
    
    .auth-checkbox-label,
    .auth-card-footer p {
        color: #d1d5db;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet & Mobile - Stack Vertical */
@media (max-width: 1024px) {
    .auth-page-wrapper {
        flex-direction: column;
    }
    
    .auth-info-section {
        min-height: 40vh;
        padding: 2rem;
    }
    
    .auth-info-title {
        font-size: 2rem;
    }
    
    .auth-features-list {
        margin-bottom: 2rem;
    }
    
    .auth-feature-item {
        margin-bottom: 1rem;
    }
    
    .auth-form-section {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
}

/* Mobile - Compact Layout */
@media (max-width: 640px) {
    .auth-info-section {
        padding: 1.5rem;
        min-height: 35vh;
    }
    
    .auth-info-logo {
        margin-bottom: 1.5rem;
    }
    
    .auth-info-logo-circle {
        width: 80px;
        height: 80px;
    }
    
    .auth-info-logo-circle i {
        font-size: 2rem;
    }
    
    .auth-info-title {
        font-size: 1.75rem;
    }
    
    .auth-info-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .auth-features-list {
        margin-bottom: 1.5rem;
    }
    
    .auth-feature-item {
        margin-bottom: 1rem;
    }
    
    .auth-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .auth-feature-content h3 {
        font-size: 1rem;
    }
    
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-card-title {
        font-size: 1.5rem;
    }
    
    .auth-logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .auth-logo-circle i {
        font-size: 1.5rem;
    }
    
    .auth-header-logo {
        margin-bottom: 1rem;
    }
    
    .auth-options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .auth-form-section {
        padding: 1.5rem 1rem;
    }
    
    .auth-button-primary {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Accessibility improvements */
.auth-input:focus-visible,
.auth-button-primary:focus-visible,
.auth-checkbox:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Animation untuk field errors */
@keyframes fieldError {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.auth-input-group.has-error {
    animation: fieldError 0.5s ease;
}

