/* Authentication Section Styles */
#auth-section {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 15px;
}

/* Form Styles */
.auth-form {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

/* Button Styles */
.auth-button {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.auth-button:hover {
    background: #0056b3;
}

.auth-button:active {
    transform: scale(0.98);
}

/* Secondary Button */
.secondary-button {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
}

.secondary-button:hover {
    background: #f8f9fa;
}

/* Toggle Links */
.auth-toggle {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-toggle p {
    color: #666;
    font-size: 14px;
}

.auth-toggle a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* Error and Success Messages */
.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.success-message {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

/* Protected Content */
#protected-content {
    display: none;
}

.user-info {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info span {
    color: #333;
    font-weight: 500;
}

.user-info button {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.user-info button:hover {
    background: #c82333;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Modal for password reset */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 600px) {
    #auth-section {
        margin: 30px 20px;
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
}
