/* Auth Pages Styles - Login & Register */

/* استخدام ألوان الهوية البصرية */
:root {
    --primary-rose-gold: #C79A72;
    --beige-light: #FFF5F3;
    --soft-pink: #F8E9E4;
    --dark-brown: #8C6143;
    --white: #FFFFFF;
    --accent-gold: #D4AF37;
    --soft-gold: #E8C7A3;
    --warm-cream: #FDF6E3;
    --text-primary: #6B4423;
    --text-secondary: #8C6143;
    --text-muted: #9B7E5F;
}

/* Auth Page Container */
.auth-page {
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--soft-pink) 50%, var(--primary-rose-gold) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* خلفية زخرفية */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(199, 154, 114, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-page .container {
    position: relative;
    z-index: 1;
}

/* Auth Card */
.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(199, 154, 114, 0.15);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 15px 50px rgba(199, 154, 114, 0.2);
    transform: translateY(-5px);
}

/* Card Header */
.auth-card .card-header {
    background: linear-gradient(135deg, var(--primary-rose-gold) 0%, var(--dark-brown) 100%);
    border: none;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.auth-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card .card-header h4 {
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-card .card-header i {
    margin-left: 10px;
    font-size: 1.2em;
}

/* Card Body */
.auth-card .card-body {
    padding: 40px;
}

@media (max-width: 576px) {
    .auth-card .card-body {
        padding: 30px 20px;
    }
}

/* Form Labels */
.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--primary-rose-gold);
    font-size: 0.9em;
}

/* Form Controls */
.auth-page .form-control,
.auth-page .form-select {
    border: 2px solid var(--soft-pink);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-primary);
}

.auth-page .form-control:focus,
.auth-page .form-select:focus {
    border-color: var(--primary-rose-gold);
    box-shadow: 0 0 0 0.2rem rgba(199, 154, 114, 0.25);
    background-color: var(--white);
    outline: none;
}

.auth-page .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Password Toggle Icon */
.password-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--primary-rose-gold);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--dark-brown);
    transform: translateY(-50%) scale(1.1);
}

/* تعديل padding للحقول التي تحتوي على أيقونة */
.position-relative .form-control {
    padding-left: 45px;
}

/* Buttons */
.auth-page .btn-primary {
    background: linear-gradient(135deg, var(--primary-rose-gold) 0%, var(--dark-brown) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 154, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-page .btn-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 ease;
}

.auth-page .btn-primary:hover::before {
    left: 100%;
}

.auth-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 154, 114, 0.4);
}

.auth-page .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(199, 154, 114, 0.3);
}

.auth-page .btn-primary i {
    margin-left: 8px;
}

/* Links */
.auth-page a {
    color: var(--primary-rose-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-page a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-rose-gold);
    transition: width 0.3s ease;
}

.auth-page a:hover {
    color: var(--dark-brown);
}

.auth-page a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* Text Center Section */
.auth-page .text-center p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Row Spacing */
.auth-page .row {
    margin-bottom: 0;
}

.auth-page .mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Select Dropdown */
.auth-page .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23C79A72' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

/* Date Input */
.auth-page input[type="date"] {
    color: var(--text-primary);
}

.auth-page input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(58%) sepia(18%) saturate(1000%) hue-rotate(350deg) brightness(90%) contrast(85%);
}

/* Loading State */
.auth-page .btn-primary:disabled {
    background: var(--text-muted);
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-page {
        padding: 20px 0;
    }
    
    .auth-card .card-header {
        padding: 20px;
    }
    
    .auth-card .card-header h4 {
        font-size: 1.3rem;
    }
    
    .auth-page .form-control,
    .auth-page .form-select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .position-relative .form-control {
        padding-left: 40px;
    }
    
    .password-toggle {
        left: 12px;
        font-size: 1rem;
    }
    
    .auth-page .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .auth-card .card-header h4 {
        font-size: 1.2rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
}

/* Focus Visible for Accessibility */
.auth-page .form-control:focus-visible,
.auth-page .form-select:focus-visible,
.auth-page .btn-primary:focus-visible {
    outline: 2px solid var(--primary-rose-gold);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance Optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
