/* Auth Page Container */
.auth-page-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 100px);
}

/* Auth Page Wrapper */
.auth-page-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

/* Logo Section */
.auth-logo-section {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.auth-logo-section h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.auth-logo-section p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Auth Tabs */
.auth-page-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
}

.auth-page-tab-btn {
    padding: 1rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.auth-page-tab-btn.active {
    color: #2ecc71;
    border-bottom-color: #2ecc71;
}

.auth-page-tab-btn:hover {
    color: #2c3e50;
}

/* Tab Content */
.auth-page-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-page-tab-content.active {
    display: block;
}

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
    background-color: #f9fffe;
}

.form-group input::placeholder {
    color: #bdc3c7;
}

.password-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.3rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
    cursor: pointer;
    accent-color: #2ecc71;
}

.forgot-password {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: #2ecc71;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #2ecc71;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer Text */
.auth-footer-text {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.auth-footer-text a {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer-text a:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Form Message */
.form-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 6px;
    display: none;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Guest Checkout Option */
.guest-checkout-option {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #bdc3c7;
}

.guest-checkout-option h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.guest-checkout-option p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.guest-checkout-btn {
    background-color: #95a5a6;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.guest-checkout-btn:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 140, 141, 0.3);
}

/* Info Section */
.auth-info-section {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 12px;
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.benefit-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* User Profile Icon & Dropdown */
.user-profile {
    position: relative;
    cursor: pointer;
    margin-right: 1rem;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.5);
}

.profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.profile-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px 8px 0 0;
}

.profile-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    color: #7f8c8d;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu {
    padding: 0.5rem 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.profile-menu-item span {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.profile-menu-item:hover {
    background-color: #f8f9fa;
    color: #2ecc71;
}

.profile-menu-item.logout {
    color: #e74c3c;
}

.profile-menu-item.logout:hover {
    background-color: #fee;
    color: #c0392b;
}

.profile-divider {
    height: 1px;
    background-color: #ecf0f1;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .auth-page-wrapper {
        padding: 2rem;
    }

    .auth-info-section {
        padding: 2rem;
    }

    .benefits-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-page-container {
        padding: 1rem;
        min-height: auto;
    }

    .auth-page-wrapper {
        padding: 1.5rem;
    }

    .auth-logo-section h1 {
        font-size: 1.5rem;
    }

    .auth-logo {
        font-size: 3rem;
        padding: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .auth-info-section {
        padding: 1.5rem;
    }

    .auth-info-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-dropdown {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 1rem;
    }

    .auth-logo-section {
        margin-bottom: 1.5rem;
    }

    .auth-logo {
        font-size: 2.5rem;
        padding: 0.6rem;
    }

    .auth-logo-section h1 {
        font-size: 1.3rem;
    }

    .auth-logo-section p {
        font-size: 0.9rem;
    }

    .auth-page-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .auth-page-tab-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .remember-me {
        width: 100%;
    }

    .forgot-password {
        width: 100%;
        text-align: left;
    }

    .benefit-item {
        text-align: left;
    }

    .benefit-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .benefit-item h3 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.9rem;
    }
    
    .profile-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .profile-dropdown {
        right: -20px;
        min-width: 220px;
    }
    
    .profile-header {
        padding: 1rem;
    }
    
    .profile-menu-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}