/* Sign In / Sign Up Page Styles */

.auth-container {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.auth-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #777;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: #0096d6;
    border-bottom: 2px solid #0096d6;
}

.auth-form {
    padding: 30px;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
    font-size: 24px;
}

.auth-subtitle {
    color: #777;
    margin-bottom: 30px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s ease;
}

.form-group input:focus {
    border-color: #0096d6;
    outline: none;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.password-strength {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
}

.strength-meter {
    display: flex;
    margin-bottom: 5px;
    gap: 5px;
}

.meter-section {
    height: 5px;
    flex: 1;
    background-color: #eee;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: #888;
}

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

.form-options a {
    color: #0096d6;
    font-size: 14px;
    text-decoration: none;
}

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

.checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #0096d6;
    border-color: #0096d6;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background-color: #0096d6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-block:hover {
    background-color: #007cb6;
}

.social-signin {
    margin-top: 30px;
    text-align: center;
}

.social-signin p {
    position: relative;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.social-signin p:before,
.social-signin p:after {
    content: "";
    position: absolute;
    width: 30%;
    height: 1px;
    background-color: #eee;
    top: 50%;
}

.social-signin p:before {
    left: 0;
}

.social-signin p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn i {
    margin-right: 10px;
}

.social-btn.google {
    color: #db4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn.apple {
    color: #000;
}

.social-btn:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

/* Authentication Status Messages */
.status-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-message.success {
    background-color: #e6f7e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.status-message.error {
    background-color: #fdecea;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

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

.user-menu-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    background-color: rgba(0, 150, 214, 0.1);
    color: #0096d6;
    transition: all 0.3s ease;
}

.user-menu-trigger:hover {
    background-color: rgba(0, 150, 214, 0.2);
}

.user-menu-trigger i {
    margin-right: 8px;
}

.user-menu-trigger span {
    font-weight: 500;
    margin: 0 8px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    width: 200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-dropdown.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

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

.user-dropdown a:hover {
    background-color: #f9f9f9;
    color: #0096d6;
}

.user-dropdown a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.user-dropdown a:last-child {
    border-top: 1px solid #eee;
}

/* Button loading state */
.btn .fa-spinner {
    margin-right: 5px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Benefits Section */

.auth-benefits {
    padding: 50px 0;
    background-color: #fff;
}

.auth-benefits h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card i {
    font-size: 40px;
    color: #0096d6;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.benefit-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */

@media (max-width: 768px) {
    .auth-box {
        margin: 0 20px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}