/* Login Component Styles */
/* Replaces the styles for removed elements: English selector, Trip button, Online indicator */

/* Authentication Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn, .signup-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn.primary {
    background: #ff6b35;
    color: white;
}

.login-btn.primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.signup-btn.secondary {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.signup-btn.secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-1px);
}

/* User Menu */
.user-menu-container {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b35;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.user-profile i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.user-dropdown a:hover {
    background: #f8f9fa;
}

.user-dropdown a i {
    width: 16px;
    color: #666;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

.user-dropdown .logout-link {
    color: #dc3545;
}

.user-dropdown .logout-link:hover {
    background: #f8f9fa;
    color: #c82333;
}

/* Login Modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #666;
}

.modal-body {
    padding: 24px;
}

/* Form Styles */
.login-form, .signup-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-options a {
    color: #ff6b35;
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

.login-submit-btn, .signup-submit-btn {
    width: 100%;
    padding: 14px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-submit-btn:hover, .signup-submit-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.login-submit-btn:disabled, .signup-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: #999;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 16px;
    position: relative;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.google-login-btn, .facebook-login-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-login-btn:hover {
    border-color: #4285f4;
    color: #4285f4;
}

.facebook-login-btn:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.google-login-btn i {
    color: #4285f4;
}

.facebook-login-btn i {
    color: #1877f2;
}

/* Signup/Login Prompts */
.signup-prompt, .login-prompt {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.signup-prompt a, .login-prompt a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.signup-prompt a:hover, .login-prompt a:hover {
    text-decoration: underline;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    z-index: 3000;
    animation: slideInFromRight 0.3s ease;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification i {
    font-size: 18px;
}

.notification-success i {
    color: #28a745;
}

.notification-error i {
    color: #dc3545;
}

.notification-warning i {
    color: #ffc107;
}

.notification-info i {
    color: #17a2b8;
}

.notification span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.notification button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification button:hover {
    background: #f8f9fa;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        gap: 8px;
    }
    
    .login-btn, .signup-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .login-modal {
        margin: 20px;
        max-width: none;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}