/* ===================================
   Authentication Page Styles
   =================================== */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    padding: 40px 20px;
}

.auth-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Auth Box */
.auth-box {
    padding: 60px 50px;
    animation: fadeIn 0.3s ease;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.auth-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 40px 0;
    text-align: center;
}

/* Forms */
.auth-form {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

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

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: #333;
    background: #f8f8f8;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    background: #fff;
    border-color: #1a1a1a;
    outline: none;
}

.form-group input::placeholder {
    color: #999;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-left: 18px;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RTL - Arabic: Eye on LEFT side */
[dir="rtl"] .toggle-password {
    left: 18px;
    right: auto;
}

/* LTR - English: Eye on RIGHT side */
[dir="ltr"] .toggle-password {
    right: 18px;
    left: auto;
}

.toggle-password svg,
.eye-icon {
    width: 20px;
    height: 20px;
    color: #999;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.forgot-link {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Form Hint */
.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    border: 2.5px solid #000000 !important;
    border-radius: 4px;
    accent-color: #000000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label span {
    line-height: 1.5;
}

.checkbox-label a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

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

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    font-size: 14px;
    color: #999;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 20px;
}

.auth-switch p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.auth-switch a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

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

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #1a1a1a;
    background: #f8f8f8;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.google-btn {
    color: #333;
}

.apple-btn {
    color: #000;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-box {
        padding: 40px 30px;
    }

    .auth-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 20px 15px;
    }

    .auth-box {
        padding: 30px 25px;
    }

    .auth-title {
        font-size: 26px;
    }

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

    .auth-btn {
        padding: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .auth-container {
        border-radius: 12px;
    }

    .auth-box {
        padding: 25px 20px;
    }

    .auth-title {
        font-size: 24px;
    }
}

/* Simple Header & Footer Styles */
.simple-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.simple-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-header .logo-image {
    height: 50px;
}

.simple-header .header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.simple-header .header-icon {
    position: relative;
    width: 24px;
    height: 24px;
    color: #1a1a1a;
    text-decoration: none;
}

.simple-header .header-icon svg {
    width: 100%;
    height: 100%;
}

.simple-header .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.simple-footer {
    background: #f8f8f8;
    padding: 30px 20px;
    margin-top: 60px;
}

.simple-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.simple-footer p {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.simple-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.simple-footer .footer-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.simple-footer .footer-links a:hover {
    text-decoration: underline;
}
