/* Authentication Page Styles */

/* Auth Page Header */
.auth-page-header {
    background: linear-gradient(135deg, #2F2D69, #1AAB9E);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 24px rgba(47, 45, 105, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/visuals/1.png');
    background-size: 60px 60px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.auth-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.auth-title-section {
    flex: 1;
}

.auth-page-title {
    color: white;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.auth-page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.auth-page-subtitle i {
    font-size: 0.95rem;
    color: #FBB547;
}

.auth-header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-decoration-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.auth-decoration-icon i {
    font-size: 1.36rem;
    color: white;
}

/* Auth Forms Container */
.auth-forms-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-forms-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-image: url('../images/visuals/2.png');
    background-size: 40px 40px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.04;
    z-index: 0;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
}

.auth-tab:hover {
    color: #1AAB9E;
    background: rgba(26, 171, 158, 0.05);
}

.auth-tab.active {
    color: #2F2D69;
    background: white;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1AAB9E, #2F2D69);
}

.auth-tab i {
    font-size: 0.82rem;
}

/* Auth Form Container */
.auth-form-container {
    display: none;
    padding: 3rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.auth-form-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease;
}

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

.auth-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-form-header h2 {
    color: #2F2D69;
    font-size: 1.22rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.auth-form-header p {
    color: #666;
    font-size: 0.68rem;
    font-weight: 400;
}

/* Auth Form */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.68rem;
    margin-bottom: 0.8rem;
    padding-right: 0.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: #1AAB9E;
    box-shadow: 0 0 0 3px rgba(26, 171, 158, 0.1);
    transform: translateY(-1px);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #666;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-icon {
    color: #1AAB9E;
    background: rgba(26, 171, 158, 0.05);
}

.input-group input,
.input-group select {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.2rem;
    font-size: 0.68rem;
    font-family: 'Farhang', sans-serif;
    background: transparent;
    color: #2c3e50;
}

.input-group input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #1AAB9E;
    background: rgba(26, 171, 158, 0.1);
}

.password-toggle i {
    font-size: 0.68rem;
}

/* Password Strength */
.password-strength {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #27ae60);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.62rem;
    color: #666;
    font-weight: 500;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.65rem;
    color: #555;
    position: relative;
    padding-right: 2rem;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #1AAB9E;
}

.checkbox-container input:checked ~ .checkmark {
    background: #1AAB9E;
    border-color: #1AAB9E;
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-link {
    color: #1AAB9E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #159a8a;
    text-decoration: underline;
}

.forgot-password {
    color: #1AAB9E;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.65rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #159a8a;
    text-decoration: underline;
}

/* Auth Submit Button */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1AAB9E, #2F2D69);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Farhang', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 12px rgba(26, 171, 158, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::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-submit-btn:hover {
    background: linear-gradient(135deg, #159a8a, #1e1b5e);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 171, 158, 0.4);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 171, 158, 0.3);
}

.auth-submit-btn i {
    font-size: 0.82rem;
}

/* Auth Features */
.auth-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-image: url('../images/visuals/3.png');
    background-size: 35px 35px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.04;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(26, 171, 158, 0.15);
    border-color: #1AAB9E;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1AAB9E, #2F2D69);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 171, 158, 0.3);
}

.feature-icon i {
    font-size: 1.36rem;
    color: white;
}

.feature-card h3 {
    color: #2F2D69;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.68rem;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-page-header {
        padding: 2.5rem 1.5rem;
    }
    
    .auth-page-title {
        font-size: 1.5rem;
    }
    
    .auth-page-subtitle {
        font-size: 0.75rem;
    }
    
    .auth-decoration-icon {
        width: 70px;
        height: 70px;
    }
    
    .auth-decoration-icon i {
        font-size: 1.22rem;
    }
    
    .auth-form-container {
        padding: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-page-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .auth-header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .auth-page-title {
        font-size: 1.36rem;
    }
    
    .auth-page-subtitle {
        font-size: 0.68rem;
        justify-content: center;
    }
    
    .auth-decoration-icon {
        width: 60px;
        height: 60px;
    }
    
    .auth-decoration-icon i {
        font-size: 1.02rem;
    }
    
    .auth-tab {
        padding: 1.2rem 1.5rem;
        font-size: 0.68rem;
    }
    
    .auth-form-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-form-header h2 {
        font-size: 1.09rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .auth-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 1.22rem;
    }
}

@media (max-width: 480px) {
    .auth-page-header {
        padding: 1.5rem 1rem;
    }
    
    .auth-page-title {
        font-size: 1.22rem;
    }
    
    .auth-page-subtitle {
        font-size: 0.65rem;
    }
    
    .auth-decoration-icon {
        width: 50px;
        height: 50px;
    }
    
    .auth-decoration-icon i {
        font-size: 0.82rem;
    }
    
    .auth-tab {
        padding: 1rem;
        font-size: 0.65rem;
    }
    
    .auth-tab i {
        font-size: 0.68rem;
    }
    
    .auth-form-container {
        padding: 1.5rem 1rem;
    }
    
    .auth-form-header h2 {
        font-size: 0.95rem;
    }
    
    .input-group {
        border-radius: 6px;
    }
    
    .input-group input,
    .input-group select {
        padding: 0.8rem 1rem;
        font-size: 0.65rem;
    }
    
    .input-icon {
        width: 45px;
        height: 45px;
    }
    
    .auth-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 0.68rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.02rem;
    }
    
    .feature-card h3 {
        font-size: 0.82rem;
    }
    
    .feature-card p {
        font-size: 0.65rem;
    }
}

/* Form Validation Styles */
.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input.success,
.form-group select.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.field-error {
    color: #e74c3c;
    font-size: 0.62rem;
    margin-top: 0.5rem;
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Loading States */
.auth-submit-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-submit-btn.loading i.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.auth-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.auth-message.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.auth-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.auth-message i {
    font-size: 0.82rem;
}
