/* Base styles for authentication pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.auth-container {
    background-image: url('/assets/background/backgroundlogin.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.auth-wrapper {
    display: flex;
    width: 80%;
    max-width: 1100px;
    background-color: none;
    border-radius: 15px;
    overflow: hidden;
    z-index: 2;
    position: relative;
}

.auth-form-section {
    flex: 0 0 45%;
    background: rgba(255, 255, 255, 0.15); /* lebih transparan buat efek kaca */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2); /* efek glow lembut */
    transition: all 0.3s ease;
}

.auth-welcome-section {
    flex: 0 0 55%;
    background: none;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.welcome-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.3;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.welcome-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 420px;
    opacity: 0.9;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: none;
}

.form-header p {
    color: #4a5568;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: #ffffff;
    color: #2d3748;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #43b581;
    box-shadow: 0 0 0 3px rgba(67, 181, 129, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #43b581, #2ecc71);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(67, 181, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 181, 129, 0.4);
    background: linear-gradient(135deg, #3da876, #27ae60);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-link {
    text-align: center;
    margin-top: 25px;
}

.auth-link p {
    color: #4a5568;
    font-size: 14px;
}

.auth-link a {
    color: #43b581;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #43b581;
}

.forgot-password a {
    color: #43b581;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Captcha Styles */
.captcha-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-image {
    flex: 0 0 120px;
}

.captcha-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: #ffffff;
}

.captcha-input {
    flex: 1;
}

/* Terms Checkbox */
.terms-checkbox {
    margin-bottom: 20px;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #43b581;
    flex-shrink: 0;
}

.terms-checkbox a {
    color: #43b581;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.alert-danger {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #742a2a;
}

.alert-success {
    background: #c6f6d5;
    border: 1px solid #68d391;
    color: #22543d;
}

/* Field Error Styles */
.field-error {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-control.error {
    border-color: #e53e3e;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Features List */
.features-list {
    margin-top: 30px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Form Row for Register */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
        width: 95%;
        height: 95%;
    }
    
    .auth-form-section,
    .auth-welcome-section {
        flex: none;
        padding: 30px 25px;
    }
    
    .auth-welcome-section {
        order: -1;
        min-height: 200px;
    }
    
    .welcome-content h1 {
        font-size: 2.2rem;
    }
    
    .welcome-content h2 {
        font-size: 1.1rem;
    }
    
    .welcome-content p {
        font-size: 0.9rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .checkbox-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image {
        flex: none;
        align-self: center;
        max-width: 150px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}