/**
 * Authentication Styles
 * Styles for login/signup pages, modals and authentication components
 */

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background-color: var(--dark-bg);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Form Styles */
.auth-modal h2 {
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.form-group .btn {
    margin-top: 10px;
}

.full-width {
    width: 100%;
}

.form-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.form-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Error and Success Messages */
.error-message,
.success-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

.success-message {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4caf50;
}

/* User Dropdown Menu */
.user-greeting {
    margin-right: 10px;
    color: var(--text-light);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 8px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 160px;
    background-color: var(--dark-bg);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 87, 34, 0.1);
    color: var(--accent-color);
}

/* Form Message Styles */
.form-message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    text-align: center;
    animation: messageFadeIn 0.3s ease;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

.form-message.success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #4caf50;
}

/* Standalone Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(26, 47, 53, 0.02) 0%, rgba(127, 209, 199, 0.05) 100%);
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: #1A2F35;
    margin-bottom: 8px;
}

.auth-header p {
    color: #4A6B63;
    font-size: 1.1rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1A2F35;
    font-size: 0.95rem;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7FD1C7;
    font-size: 1.1rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #7FD1C7;
    box-shadow: 0 0 0 3px rgba(127, 209, 199, 0.2);
    outline: none;
}

.auth-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.auth-form .remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4A6B63;
}

.auth-form .forgot-password {
    color: #FF8C42;
    text-decoration: none;
}

.auth-form .forgot-password:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #4A6B63;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f8f8f8;
}

.social-btn.google i {
    color: #DB4437;
}

.social-btn.facebook i {
    color: #4267B2;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-footer p {
    margin: 10px 0;
    color: #4A6B63;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #FF8C42;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Role Selector Styles */
.role-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.role-option {
    flex: 1;
}

.role-option input[type="radio"] {
    display: none;
}

.role-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-option input[type="radio"]:checked + label {
    border-color: #7FD1C7;
    background: rgba(127, 209, 199, 0.05);
    box-shadow: 0 0 0 2px rgba(127, 209, 199, 0.2);
}

.role-option label i {
    font-size: 1.5rem;
    color: #FF8C42;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .social-auth {
        flex-direction: column;
    }
}
