/* Register Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

/* Container */
.auth-container {
    min-width: 480px;
    max-width: 100%;
    margin: 0 auto;
}

/* Card */
.auth-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 6px;
}

.auth-title-main {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-title-sub {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

/* Form Group */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-label .required {
    color: #ef4444;
    margin-right: 4px;
}

/* Input Fields */
.auth-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #1a1a1a;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.auth-input:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
}

/* LTR Inputs (for email, phone, etc.) */
.auth-input-ltr {
    direction: ltr;
    text-align: left;
}

/* Error States */
.auth-input-error {
    border-color: #ef4444;
}

.auth-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons Container */
.auth-buttons {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-direction: row;
}

/* Primary Button (Orange Solid) */
.auth-btn-primary {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    /* background-color: #FF6B35; */
    background-color: rgb(217,119,6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
}

.auth-btn-primary:hover {
    /* background-color: #FF5722; */
    background-color: #f59e0b;
}

.auth-btn-primary:active {
    transform: scale(0.98);
}

.auth-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* OTP Button */
.auth-btn-otp {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    /* background-color: #FF6B35; */
    background-color: rgb(217,119,6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.auth-btn-otp:hover {
    /* background-color: #FF5722; */
    background-color: #f59e0b;
}

.auth-btn-otp:active {
    transform: scale(0.98);
}

.auth-btn-otp:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.auth-btn-otp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Link Style */
.auth-link {
    /* color: #FF6B35 !important; */
    color: rgb(217,119,6) !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 14px 0;
    white-space: nowrap;
    display: inline-block;
}

.auth-link:hover {
    /* color: #FF5722 !important; */
    color: #f59e0b !important;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 8px;
    }

    .auth-title-main {
        font-size: 18px;
    }

    .auth-title-sub {
        font-size: 20px;
    }

    .auth-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .auth-btn-primary {
        width: 100%;
    }

    .auth-link {
        text-align: center;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .auth-container {
        min-width: auto;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-title-main {
        font-size: 16px;
    }

    .auth-title-sub {
        font-size: 18px;
    }

    .auth-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .auth-btn-primary {
        padding: 12px 20px;
        font-size: 15px;
    }
}

