﻿.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header Section */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    direction: rtl;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

    .step.active {
        background: linear-gradient(135deg, #D2691E, #8B4513);
        color: #fff;
        box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    }

.step-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
}

/* Form Title & Subtitle */
.form-title {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: right;
    direction: rtl;
}

.form-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: right;
    direction: rtl;
}

/* Form Card */
.form-card {
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(139, 69, 19, 0.1);
}

/* Form Groups */
.form-group {
    margin-bottom: 30px;
}

/* Form Labels */
.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8B4513;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: right;
    direction: rtl;
    justify-content: flex-start;
}

    .form-label i {
        color: #D2691E;
        font-size: 1.1rem;
    }

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    direction: rtl;
    text-align: right;
}

    .form-input:focus {
        outline: none;
        border-color: #D2691E;
        box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
        transform: translateY(-2px);
    }

    .form-input::placeholder {
        color: #aaa;
        font-size: 0.95rem;
    }

/* Input Focus Effect */
.input-focus {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #D2691E, #8B4513);
    transition: width 0.3s ease;
}

.form-input:focus + .input-focus {
    width: 100%;
}

/* Validation Errors */
.validation-error {
    display: block;
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
    padding-right: 5px;
    text-align: right;
    direction: rtl;
}

.validation-summary {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #f5c6cb;
    display: none;
    text-align: right;
    direction: rtl;
}

    .validation-summary:not(:empty) {
        display: block;
    }

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
    direction: rtl;
}

/* Next Button */
.btn-next {
    background: linear-gradient(135deg, #D2691E, #8B4513);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    border: 2px solid #A0522D;
}

    .btn-next:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(139, 69, 19, 0.4);
        background: linear-gradient(135deg, #CD853F, #A0522D);
    }

    .btn-next:active {
        transform: translateY(-1px);
    }

    .btn-next i {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .btn-next:hover i {
        transform: translateX(3px);
    }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }

    .form-card {
        padding: 25px;
        border-radius: 15px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }

    .step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .step-line {
        width: 40px;
    }

    .btn-next {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Loading State */
.btn-next.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .btn-next.loading::after {
        content: "";
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    animation: fadeInUp 0.6s ease-out;
}

.form-header {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}
/* Phone Verification Styles */
.phone-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .phone-wrapper .form-input {
        flex: 1;
    }

.btn-verify {
    background: linear-gradient(135deg, #D2691E, #8B4513);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

    .btn-verify:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    }

    .btn-verify:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }

.btn-loading {
    display: none;
}

.btn-verify.loading .btn-text {
    display: none;
}

.btn-verify.loading .btn-loading {
    display: inline;
}

.phone-status,
.verification-status {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: right;
    direction: rtl;
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    direction: rtl;
}

    .status-message.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .status-message.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .status-message.info {
        background: #d1ecf1;
        color: #0c5460;
        border: 1px solid #bee5eb;
    }

.phone-status.verified {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.phone-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verification-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .verification-wrapper .form-input {
        flex: 1;
    }

.verification-input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: bold;
}

.code-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0c5460;
    margin-bottom: 10px;
}

.resend-section {
    text-align: center;
}

.btn-resend {
    background: transparent;
    border: 1px solid #D2691E;
    color: #D2691E;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-resend:hover:not(:disabled) {
        background: #D2691E;
        color: #fff;
    }

    .btn-resend:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.countdown {
    font-weight: bold;
}

.verification-success {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-align: right;
    direction: rtl;
}

    .verification-success i {
        color: #28a745;
        font-size: 1.2rem;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .phone-wrapper,
    .verification-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .btn-verify {
        width: 100%;
        min-width: auto;
    }
}
/* Additional CSS for animations */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.btn-next.enabled {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.phone-status.success {
    color: #28a745;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 5px;
}

.phone-status.error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 5px;
}

.phone-status.info {
    color: #0c5460;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 5px;
}

.code-expiry {
    margin-top: 8px;
    font-size: 0.9em;
    color: #6c757d;
}

    .code-expiry i {
        margin-right: 5px;
    }