/* ==========================================
   SIGNUP PAGE - SPECIFIC STYLES
   ========================================== */

.signup-page {
    width: 100%;
    min-height: 100vh;
    background: #0D0F10;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   SIGNUP CONTAINERS
   ========================================== */

.signup-container {
    max-width: 1100px;
    width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.signup-container-narrow {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   SIGNUP HEADER
   ========================================== */

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-title {
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.signup-subtitle {
    font-size: 0.95rem;
    color: #A9ADB1;
    line-height: 1.5;
}

/* ==========================================
   ROLE SELECTION CARDS
   ========================================== */

.signup-role-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.signup-role-card {
    position: relative;
    padding: 2rem 1.75rem;
    background: rgba(26, 29, 31, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.signup-role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 14px 14px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.signup-role-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.signup-role-card:hover::before {
    transform: scaleX(1);
}

.signup-role-card.active {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.08));
}

.signup-role-card.active::before {
    transform: scaleX(1);
}

.signup-role-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.signup-role-card:hover .signup-role-icon {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.signup-role-icon svg {
    width: 28px;
    height: 28px;
    color: #3B82F6;
}

.signup-role-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 0.5rem;
}

.signup-role-description {
    font-size: 0.9rem;
    color: #A9ADB1;
    text-align: center;
    margin-bottom: 1.25rem;
}

.signup-role-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signup-role-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: #A9ADB1;
}

.signup-role-features svg {
    width: 16px;
    height: 16px;
    color: #10B981;
    flex-shrink: 0;
}

.signup-role-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.signup-role-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.signup-role-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.signup-role-btn:hover svg {
    transform: translateX(3px);
}

[dir="rtl"] .signup-role-btn:hover svg {
    transform: translateX(-3px);
}

/* ==========================================
   SIGNUP BACK BUTTON
   ========================================== */

.signup-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    background: rgba(26, 29, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #A9ADB1;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-bottom: 1.5rem;
}

.signup-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(59, 130, 246, 0.3);
}

.signup-back-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   SIGNUP FORM
   ========================================== */

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

.signup-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.signup-form-group {
    position: relative;
}

.signup-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.signup-required {
    color: #EF4444;
    margin-left: 0.25rem;
}

.signup-input-wrapper {
    position: relative;
}

.signup-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6B7280;
    pointer-events: none;
    transition: color 0.3s ease;
}

[dir="rtl"] .signup-input-icon {
    left: auto;
    right: 1rem;
}

.signup-form-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: rgba(26, 29, 31, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #FFFFFF;
    font-family: inherit;
    transition: all 0.3s ease;
}

[dir="rtl"] .signup-form-input {
    padding: 0.85rem 3rem 0.85rem 1rem;
}

.signup-form-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.signup-form-input:focus ~ .signup-input-icon {
    color: #3B82F6;
}

.signup-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.signup-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6B7280;
    transition: color 0.3s ease;
}

[dir="rtl"] .signup-toggle-password {
    right: auto;
    left: 1rem;
}

.signup-toggle-password:hover {
    color: #3B82F6;
}

.signup-toggle-password svg {
    width: 18px;
    height: 18px;
}

.signup-password-strength {
    margin-top: 0.5rem;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.signup-password-strength.show {
    display: block;
}

.signup-password-strength::before {
    content: '';
    display: block;
    height: 100%;
    transition: all 0.3s ease;
}

.signup-password-strength.weak::before {
    width: 33%;
    background: #EF4444;
}

.signup-password-strength.medium::before {
    width: 66%;
    background: #F59E0B;
}

.signup-password-strength.strong::before {
    width: 100%;
    background: #10B981;
}

.signup-form-group.error .signup-form-input {
    border-color: #EF4444;
}

.signup-error-message {
    display: none;
    font-size: 0.8rem;
    color: #EF4444;
    margin-top: 0.4rem;
}

.signup-form-group.error .signup-error-message {
    display: block;
}

.signup-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
}

.signup-checkbox-wrapper input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3B82F6;
}

.signup-checkbox-text {
    font-size: 0.85rem;
    color: #A9ADB1;
    line-height: 1.5;
}

.signup-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.75rem;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.signup-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.signup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signup-btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.signup-submit-btn:hover:not(:disabled) .signup-btn-icon {
    transform: translateX(3px);
}

.signup-btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: signupSpin 0.6s linear infinite;
}

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

.signup-submit-btn.loading .signup-btn-text,
.signup-submit-btn.loading .signup-btn-icon {
    display: none;
}

.signup-submit-btn.loading .signup-btn-loader {
    display: block;
}

.signup-form-messages {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    display: none;
}

.signup-form-messages.show {
    display: block;
}

.signup-form-messages.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.signup-form-messages.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.signup-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.signup-footer p {
    font-size: 0.9rem;
    color: #A9ADB1;
    margin: 0;
}

.signup-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #60A5FA;
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .signup-page {
        padding: 1.5rem 0;
    }

    .signup-container,
    .signup-container-narrow {
        padding: 0 1.5rem;
    }

    .signup-role-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

@media (max-width: 480px) {
    .signup-container,
    .signup-container-narrow {
        padding: 0 1.25rem;
    }

    .signup-form-input {
        padding: 0.8rem 0.95rem 0.8rem 2.75rem;
        font-size: 0.85rem;
    }
}

.signup-page *:focus-visible {
    outline: 3px solid #3B82F6;
    outline-offset: 3px;
    border-radius: 4px;
}