/* Variabel CSS */
:root {
    --primary-color: #58a700;
    --primary-dark: #4a8f00;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e1e5e9;
    --error-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Header */
.auth-header {
    padding: 15px 0;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 80px;
    width: 230px;
    margin: 0 0;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    font-size: 1.5rem;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-txt {
    width: 150px;
}

.logo-txt img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Auth Main */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Auth Card */
.auth-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    transition: var(--transition);
}

.auth-card:hover {
    box-shadow: var(--shadow-hover);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.auth-card-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 167, 0, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Password Input Container */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--text-color);
}

.eye-icon {
    font-size: 1.2rem;
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    line-height: 1.4;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

.btn-social {
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    margin-top: 10px;
}

.btn-social:hover {
    background: var(--light-gray);
    border-color: var(--text-muted);
}

.btn-google {
    width: 100%;
}

.social-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Links */
.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.forgot-password {
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    margin: 30px 0 20px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider span {
    background: var(--white);
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Auth Side */
.auth-side {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-side-content {
    text-align: center;
    padding: 40px;
}

.auth-side-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.auth-side-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px 16px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Alert Styles */
.alert-container {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Error Messages */
.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-main {
        flex-direction: column;
        gap: 40px;
    }
    
    .auth-side {
        order: -1;
        max-width: 100%;
    }
    
    .auth-side-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 20px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-card-header h1 {
        font-size: 1.6rem;
    }
    
    .auth-side-content h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .features-list {
        gap: 12px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .auth-header {
        padding: 15px 0;
    }
    
    .logo {
        padding: 0 15px;
    }
    
    .auth-main {
        padding: 15px;
    }
    
    .auth-card {
        padding: 25px 15px;
    }
    
    .auth-side-content {
        padding: 15px;
    }
}

