/* Authentication Pages Styles */

/* Auth Page Layout */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.auth-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Auth Card */
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header i {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.auth-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.auth-header p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.phone-display {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #e74c3c !important;
    margin-top: 10px !important;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input:not([type="checkbox"]),
.form-group select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

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

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.country-code-select {
    width: 120px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.phone-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* Code Verification */
.code-verification {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
    align-items: center;
}

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

.password-toggle i {
    font-size: 20px;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

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

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
}

.password-strength span {
    font-size: 12px;
    font-weight: 500;
}

/* Checkbox Group */
.checkbox-group {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Buttons */
.btn.w-100 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn i.spinning {
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Verifying Message */
.verifying-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin: 20px 0;
}

.countdown-text {
    color: #666;
    font-size: 14px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 500;
}

/* Auth Info Section */
.auth-info {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-info h3 {
    margin: 0 0 30px 0;
    font-size: 22px;
    color: #333;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
}

.info-item i {
    font-size: 36px;
    color: #e74c3c;
    flex-shrink: 0;
}

.info-item h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.info-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .auth-info {
        order: -1;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 30px 15px;
    }

    .auth-card,
    .auth-info {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .auth-header i {
        font-size: 48px;
    }

    .code-verification {
        gap: 8px;
    }

    .code-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .country-code-select {
        width: 100%;
    }
}

/* Additional Utilities */
.btn-mini {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-big {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Smooth Transitions */
input,
select,
button {
    transition: all 0.3s ease;
}