/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #0A4B3E;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #0A4B3E;
    border-bottom: 2px solid #0A4B3E;
    margin-bottom: -2px;
}

/* Auth Forms */
.auth-form {
    display: none;
}

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

.signup-form {
    display: none;
}

.signup-form.active {
    display: block;
}

/* Google Sign In Button */
.google-signin {
    margin-bottom: 20px;
}

.google-signin button {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.google-signin button:hover {
    background: #f8f9fa;
}

.google-signin img {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background: #e9ecef;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c2c2c;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0A4B3E;
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-code {
    background: #f8f9fa;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    color: #2c2c2c;
    font-weight: 500;
}

.phone-input input {
    flex: 1;
}

/* Form error states */
.form-group.error input {
    border-color: #dc3545;
}

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

/* Submit button */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #0A4B3E;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #096B52;
}

/* Auth Message */
.auth-message {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.auth-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
button[type="submit"] i.fa-spinner {
    margin-right: 8px;
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Verification Modal Styles */
.verification-modal {
    max-width: 500px;
}

.verification-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.verification-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.verification-section.verified {
    background: #e8f5e9;
    border: 1px solid #4caf50;
}

.verification-section h3 {
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.otp-input {
    margin: 15px 0;
}

.otp-input input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.verification-section button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.verification-section button:hover {
    background: var(--primary-dark);
}

.verification-section .resend-btn {
    background: #f1f3f4;
    color: #666;
}

.verification-section .resend-btn:hover {
    background: #e4e6e7;
}

.verification-section .resend-btn:disabled {
    background: #f1f3f4;
    color: #999;
    cursor: not-allowed;
}

.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    background: #333;
    color: white;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.message-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.message-toast.success {
    background: #4caf50;
}

.message-toast.error {
    background: #f44336;
}

.message-toast.info {
    background: #2196f3;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-modal-content {
        margin: 15px;
        padding: 20px;
    }
    
    .auth-tab {
        padding: 10px;
        font-size: 14px;
    }
}
