@import url(./font.css);

/* ===== SELLER AUTH PAGE ===== */
:root {
    --seller-primary: #7e22ce;
    --seller-primary-light: #a855f7;
    --seller-dark: #1e1b4b;
    --gray-light: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'YekanBakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
}

/* Main Layout */
.seller-auth-main {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Brand Section */
.seller-auth-brand {
    display: none;
    width: 40%;
    background: linear-gradient(135deg, #7e22ce 0%, #6d28d9 50%, #5b21b6 100%);
    color: white;
    padding: 4rem 2rem;
    overflow-y: auto;
    position: relative;
}

.seller-auth-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .seller-auth-brand {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.seller-auth-brand-content {
    text-align: center;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.seller-auth-logo-link {
    display: inline-block;
    text-decoration: none;
}

.seller-auth-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
    filter: brightness(0) invert(1);
}

.seller-auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
    text-align: right;
}

.seller-auth-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #e9d5ff;
}

.seller-auth-feature i {
    font-size: 1.25rem;
    color: #c4b5fd;
    flex-shrink: 0;
}

.seller-auth-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #e9d5ff;
}

/* Form Container */
.seller-auth-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .seller-auth-form-container {
        padding: 3rem 2rem;
    }
}

/* Tabs */
.seller-auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.seller-auth-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #a78bfa;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.seller-auth-tab:hover {
    color: #c4b5fd;
}

.seller-auth-tab.active {
    color: #c4b5fd;
    border-bottom-color: #a855f7;
}

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

.seller-auth-form.active {
    display: block;
}

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

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(168, 85, 247, 0.05);
    color: #f3f4f6;
}

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

.form-group input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-hint {
    display: block;
    color: #a78bfa;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 0.75rem;
}

.input-group input {
    flex: 1;
}

.country-code {
    flex: 0 0 auto;
    width: 100px;
    padding: 0.75rem 0.5rem;
    border: 1.5px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.05);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #f3f4f6;
    transition: all 0.3s ease;
}

.country-code:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding-left: 2.8rem;
}

.toggle-password {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    color: #a78bfa;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #c4b5fd;
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: #f3f4f6;
    font-weight: 500;
}

.checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #a855f7;
}

/* Seller Type Cards */
.seller-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.seller-type-card {
    position: relative;
    cursor: pointer;
}

.seller-type-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(168, 85, 247, 0.05);
}

.card-content i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #a78bfa;
    transition: color 0.3s ease;
}

.card-content span {
    font-weight: 600;
    color: #f3f4f6;
    font-size: 0.9rem;
}

.seller-type-card input:checked + .card-content {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.seller-type-card input:checked + .card-content i {
    color: #c4b5fd;
}

.seller-type-card input:checked + .card-content span {
    color: #c4b5fd;
}

/* Gender Options */
.gender-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gender-option {
    position: relative;
    cursor: pointer;
}

.gender-option input {
    position: absolute;
    opacity: 0;
}

.gender-option span {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #f3f4f6;
    transition: all 0.3s ease;
    background: rgba(168, 85, 247, 0.05);
}

.gender-option input:checked + span {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    color: #c4b5fd;
}

/* Buttons */
.btn-primary-seller {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-seller:hover {
    box-shadow: 0 10px 32px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.btn-primary-seller:active {
    transform: translateY(0);
}

.btn-primary-seller:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Redirect */
.seller-auth-redirect {
    text-align: center;
    color: #a78bfa;
    margin-top: 1.5rem;
}

.seller-auth-redirect a {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
    margin-right: 0.5rem;
}

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

/* Responsive */
@media (max-width: 640px) {
    .seller-auth-form-container {
        padding: 1.5rem 1rem;
    }

    .seller-auth-tabs {
        margin-bottom: 1.5rem;
    }

    .seller-auth-tab {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

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

    .seller-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-content i {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }

    .card-content span {
        font-size: 0.75rem;
    }
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-right-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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