/* Auth Modal Styles */

/* Modal Overlay */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
}

/* Modal Content */
.auth-modal-content {
    background: rgba(200, 200, 200, 0.7);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 20px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.auth-modal.show .auth-modal-content {
    transform: scale(1) translateY(0);
}

/* Header */
.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.auth-modal-header h2 {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-modal-close {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.4);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: rgba(0, 0, 0, 0.7);
}

/* Error Message */
.auth-error {
    display: none;
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Form Group */
.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
    font-size: 14px;
}

.auth-form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: #333;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    backdrop-filter: blur(10px);
}

.auth-form-group input:focus {
    border-color: rgba(100, 149, 237, 0.5);
    background: rgba(255, 255, 255, 0.7);
}

.auth-form-group input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: rgba(100, 149, 237, 0.5);
    color: #fff;
    border: 1px solid rgba(100, 149, 237, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover {
    background: rgba(100, 149, 237, 0.6);
    border-color: rgba(100, 149, 237, 0.5);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Animation */
.auth-submit-btn.loading {
    color: transparent;
    pointer-events: none;
}

.auth-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
.auth-submit-btn.success {
    background: rgba(39, 174, 96, 0.5);
    border-color: rgba(39, 174, 96, 0.3);
    color: transparent;
    pointer-events: none;
}

.auth-submit-btn.success::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    animation: auth-check 0.3s ease;
}

@keyframes auth-check {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer span {
    color: rgba(0, 0, 0, 0.4);
    font-size: 14px;
}

.auth-footer a {
    color: rgba(100, 149, 237, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: rgba(100, 149, 237, 1);
}

