/* Auth Panel Styles */
.auth-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: none;
}

.auth-panel.open {
    right: 0;
    display: block;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--lightBorderColor);
}

.auth-header-spacer {
    opacity: 0;
}

.auth-content {
    padding: 2rem;
    height: calc(100vh - 160px);
    overflow-y: auto;
    padding-bottom: 10rem;
}

.closeAuthButton {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.closeAuthButton:hover {
    background-color: var(--grayBackgroundColor);
}

/* Auth Form Styles */
#authContent {
    max-width: 100%;
}

#authContent h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

#authContent p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

#authContent .field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-block: 0.75rem;
}

#authContent label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primaryFontColor);
}

#authContent input {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--lightBorderColor);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

#authContent input:focus {
    outline: none;
    border-color: var(--primaryFontColor);
}

#authContent .primaryButton {
    background-color: var(--primaryFontColor);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#authContent .primaryButton:hover {
    opacity: 0.9;
}

#authContent .secondary {
    background-color: transparent;
    color: var(--primaryFontColor);
    border: 1px solid var(--lightBorderColor);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#authContent .secondary:hover {
    background-color: var(--grayBackgroundColor);
}

/* Error message styles */
#authContent div[style*="background-color: #fee"] {
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Terms and Conditions Styles */
.terms-container {
    border: 1px solid var(--lightBorderColor);
    border-radius: 4px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    background-color: var(--grayBackgroundColor);
}

.terms-container h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primaryFontColor);
}

.terms-container p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--secondaryFontColor);
}

/* Marketing Consent Styles */
.marketing-consent-container {
    border: 1px solid var(--lightBorderColor);
    border-radius: 4px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    background-color: var(--grayBackgroundColor);
}

.marketing-consent-container h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primaryFontColor);
}

.marketing-consent-container p {
    margin: 0 0 1rem 0;
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--secondaryFontColor);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--primaryFontColor);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.125rem;
    width: auto;
    height: auto;
}

/* Registration form specific styles */
.auth-header-text {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header-text h2 {
    margin-bottom: 0.5rem;
}

.auth-header-text p {
    color: var(--secondaryFontColor);
}

.auth-error-message {
    background-color: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-field-full {
    margin-bottom: 1rem;
}

.auth-field-full label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-field-full input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid var(--lightBorderColor);
    border-radius: 4px;
    font-size: 1rem;
}

.auth-field-full input:focus {
    outline: none;
    border-color: var(--primaryFontColor);
}

.auth-submit-section {
    text-align: center;
    margin-top: 2rem;
}

.auth-submit-section button {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.auth-switch-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lightBorderColor);
}

.auth-switch-section p {
    color: var(--secondaryFontColor);
    margin-bottom: 1rem;
}

.auth-switch-section button {
    width: 100%;
}

/* Forgot password link styling */
.forgot-password-link {
    background: none;
    border: none;
    color: var(--secondaryFontColor);
    text-decoration: underline;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.forgot-password-link:hover {
    color: var(--primaryFontColor);
}

/* Auth success/response styling */
.auth-success-message {
    text-align: center;
    padding: 2rem;
}

.auth-success-message h3 {
    margin-bottom: 1rem;
    color: var(--primaryFontColor);
}

.auth-success-message p {
    margin-bottom: 1.5rem;
    color: var(--secondaryFontColor);
}

.auth-success-button {
    margin-top: 1rem;
}

/* Standalone auth page styling */
.auth-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grayBackgroundColor);
    padding: 2rem;
}

.auth-page-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-page-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-page-content .auth-header-text p {
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-panel {
        max-width: 100%;
    }
    
    #authContent {
        padding: 1rem;
    }
    
    .terms-container {
        max-height: 150px;
        font-size: 0.7rem;
    }
    
    .auth-page-container {
        padding: 1rem;
    }
    
    .auth-page-content {
        padding: 2rem;
    }
}

/* Terms and Conditions Page Styles */
.terms-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

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

.terms-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primaryFontColor);
    font-size: 2rem;
    font-weight: 600;
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h2 {
    color: var(--primaryFontColor);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--lightBorderColor);
    padding-bottom: 0.5rem;
}

.terms-section p {
    color: var(--secondaryFontColor);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

.terms-back-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lightBorderColor);
}

@media (max-width: 768px) {
    .terms-page {
        padding: 1rem;
    }
    
    .terms-content {
        padding: 1.5rem;
    }
    
    .terms-content h1 {
        font-size: 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.1rem;
    }
} 