/* ========================================
   AUTH PAGES - SHOPEE STYLE
   Login & Register mirip Shopee.co.id
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
}

/* Container Utama */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Simple */
.auth-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ee4d2d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-logo img {
    height: 40px;
}

.auth-help {
    color: #ee4d2d;
    font-size: 14px;
    text-decoration: none;
}

.auth-help:hover {
    text-decoration: underline;
}

/* Main Container */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.auth-container {
    max-width: 1040px;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: 600px;
}

/* Kolom Kiri - Ilustrasi */
.auth-illustration {
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6b35 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.auth-illustration-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-illustration h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.auth-illustration p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
}

.auth-illustration-icon {
    font-size: 120px;
    opacity: 0.3;
    margin-top: 30px;
}

/* Kolom Kanan - Form */
.auth-form-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 30px;
}

.auth-form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.auth-form-header p {
    color: #999;
    font-size: 14px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.form-group label .required {
    color: #ee4d2d;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dbdbdb;
    border-radius: 2px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #ee4d2d;
    box-shadow: 0 0 0 1px #ee4d2d;
}

.form-control::placeholder {
    color: #bbb;
}

.form-control.error {
    border-color: #ff424f;
}

textarea.form-control {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    min-height: 80px;
}

/* Password Field */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.password-toggle:hover {
    color: #666;
}

/* Form Row (2 columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #ee4d2d;
}

.form-check label {
    margin: 0;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.form-check label a {
    color: #ee4d2d;
    text-decoration: none;
}

.form-check label a:hover {
    text-decoration: underline;
}

/* Button */
.btn-auth {
    width: 100%;
    height: 40px;
    background: #ee4d2d;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-auth:hover {
    background: #d73211;
    box-shadow: 0 2px 8px rgba(238, 77, 45, 0.4);
}

.btn-auth:active {
    transform: translateY(1px);
}

.btn-auth:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Links */
.auth-links {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
}

.auth-links a {
    color: #ee4d2d;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbdbdb;
}

.auth-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
}

/* Social Login (Optional) */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-social {
    height: 40px;
    border: 1px solid #dbdbdb;
    background: white;
    border-radius: 2px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: #f5f5f5;
    border-color: #999;
}

.btn-social i {
    font-size: 18px;
}

.btn-social.facebook {
    color: #1877f2;
}

.btn-social.google {
    color: #db4437;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #999;
}

.auth-switch a {
    color: #ee4d2d;
    font-weight: 500;
    text-decoration: none;
    margin-left: 5px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 2px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    color: #d8000c;
}

.alert-success {
    background: #f0f9ff;
    border: 1px solid #b3e0ff;
    color: #004085;
}

.error-message {
    color: #ff424f;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Footer */
.auth-footer {
    background: white;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
}

.auth-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.auth-footer-links a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: #ee4d2d;
}

.auth-footer-copyright {
    color: #999;
    font-size: 12px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-illustration {
        display: none;
    }
    
    .auth-form-section {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-logo {
        font-size: 20px;
    }
    
    .auth-form-header h2 {
        font-size: 20px;
    }
    
    .auth-illustration h1 {
        font-size: 24px;
    }
}