/* User Authentication Styles */

/* Auth container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    background-color: var(--background-gray);
}

.auth-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.auth-box h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

/* Form styles */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.form-actions {
    margin-top: 2rem;
}

.form-actions button {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Auth links */
.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.divider {
    margin: 0 0.5rem;
    color: #999;
}

/* Social login */
.social-login {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.social-login p {
    margin-bottom: 1rem;
    color: #666;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    width: auto;
}

.btn-google {
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.btn-facebook {
    background-color: #3b5998;
    color: white;
    border: 1px solid #3b5998;
}

.btn-twitter {
    background-color: #1da1f2;
    color: white;
    border: 1px solid #1da1f2;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* Profile page styles */
.profile-container {
    display: flex;
    padding: 2rem;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    background-color: var(--background-gray);
}

.profile-sidebar {
    flex: 0 0 250px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.profile-info {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.profile-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

.profile-info h3 {
    margin-bottom: 0.5rem;
}

.user-role {
    display: inline-block;
    background-color: #e3f2fd;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.profile-nav {
    display: flex;
    flex-direction: column;
}

.profile-nav-link {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.profile-nav-link:hover {
    background-color: #f5f5f5;
}

.profile-nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.profile-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.profile-tab h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.profile-form {
    max-width: 600px;
}

/* Connected accounts */
.connected-accounts {
    margin-top: 1.5rem;
}

.connected-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-info img {
    width: 32px;
    height: 32px;
}

.connect-more {
    margin-top: 2rem;
}

.connect-more h3 {
    margin-bottom: 1rem;
}

/* User dropdown in header */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1976d2;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #388e3c;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer enhancements */
.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.footer-logo h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.copyright-section {
    padding: 1.5rem;
    text-align: center;
    background-color: #eeeeee;
    color: #666;
}

/* Verification styles */
.verification-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.verification-actions p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.verification-actions form {
    margin-bottom: 1rem;
}

.login-link {
    margin-top: 1rem;
    text-align: center;
}

.resend-verification {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.resend-verification p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Email verification badge */
.email-verification-status {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.verified {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.unverified {
    background-color: #fff8e1;
    color: #ff8f00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        flex: none;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }
}
