/* Authentication Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.auth-modal-content {
    position: relative;
    z-index: 1001;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px;
    padding: 50px 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 255, 65, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.auth-modal-close:hover {
    color: var(--accent-color);
    background-color: rgba(0, 255, 65, 0.1);
    transform: rotate(90deg);
}

.auth-modal-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color), #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-modal-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 35px;
    text-align: center;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 10px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background-color: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--accent-color), #00ccff);
    color: #1a1a1a;
}

/* Form Container */
.auth-form-container {
    position: relative;
    min-height: 400px;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #ff4444;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

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

.form-group input.success {
    border-color: var(--accent-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.form-group small.error-text {
    color: #ff4444;
}

.form-group small.success-text {
    color: var(--accent-color);
}

/* Password Toggle */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: var(--accent-color);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ff4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ff9800;
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--accent-color);
}

/* Remember Me & Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #00ccff;
    text-decoration: underline;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

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

.terms-checkbox a {
    color: var(--accent-color);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color), #00ccff);
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

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

/* Alert Messages */
.auth-alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert.error {
    background-color: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.auth-alert.success {
    background-color: rgba(0, 255, 65, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.auth-alert.show {
    display: block;
}

/* Loading Spinner */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styles for Tablets */
@media screen and (max-width: 768px) {
    .auth-modal-content {
        padding: 40px 30px;
        width: 85%;
        max-width: 500px;
    }
    
    .auth-modal-title {
        font-size: 26px;
    }
    
    .auth-modal-description {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .auth-tab {
        font-size: 15px;
        padding: 10px 15px;
    }
    
    .auth-modal-close {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Responsive Styles for Mobile */
@media screen and (max-width: 480px) {
    .auth-modal-content {
        padding: 35px 25px;
        width: 90%;
        border-radius: 15px;
    }
    
    .auth-modal-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .auth-modal-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .auth-tab {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .form-group input {
        padding: 11px 14px;
        font-size: 13px;
    }
    
    .auth-submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .auth-modal-close {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }
}
