/* Auth pages CSS - Clean layout for login and register */

.auth-container .text-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.auth-container .text-subheading {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.auth-container h1, .auth-container h2 {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-weight: 600;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 1152px; /* Match ec-content-container width */
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-form-container {
    padding: 2rem;
}

.auth-info-container {
    background-color: #f9fafb;
    border-left: 1px solid #e5e7eb;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Form Elements */
.auth-container .form-group {
    margin-bottom: 1.5rem;
}

.auth-container .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-container .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #111827;
    transition: border-color 0.2s;
}

.auth-container .form-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Password Wrapper */
.auth-container .password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-container #password {
    flex-grow: 1;
    order: 1;
    padding-right: 5px;
}

.auth-container .toggle-password {
    order: 0;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 0 8px;
    height: calc(100% - 2px);
    line-height: 1;
    border-radius: 4px 0 0 4px;
    font-size: 0.9em;
    color: #333;
    margin-right: -1px;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.auth-container .toggle-password:hover {
    background: #e0e0e0;
}

/* Checkbox */
.auth-container .form-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.auth-container .form-checkbox {
    margin-right: 0.5rem;
}

.auth-container .checkbox-label {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Submit Button */
.auth-container .form-submit {
    width: 100%;
    padding: 0.75rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-container .form-submit:hover {
    background-color: #45a049;
}

/* Auth Links */
.auth-container .auth-alt-option {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.auth-container .auth-alt-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.auth-container .auth-alt-link:hover {
    text-decoration: underline;
}

.auth-container .form-text-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.875rem;
    float: right;
}

.auth-container .form-text-link:hover {
    text-decoration: underline;
}

/* Benefits Section */
.auth-container .auth-benefits {
    margin-top: 1.5rem;
}

.auth-container .benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.auth-container .benefit-icon {
    margin-right: 0.75rem;
    color: #4CAF50;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auth-container .benefit-text {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.125rem;
}

/* Info Image */
.auth-container .info-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-info-container {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
    
    .auth-card {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}

/* Spinner for loading state */
.auth-container .spinner {
    display: none;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    animation: spin 1s linear infinite;
    margin-right: 5px;
    vertical-align: middle;
}

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

/* CTA Container - Separate horizontal section */
.cta-container {
    width: 100%;
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.cta-content {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
    min-width: 140px;
    text-align: center;
}

.cta-primary {
    background-color: #4CAF50;
    color: white;
}

.cta-primary:hover {
    background-color: #45a049;
}

.cta-secondary {
    background-color: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.cta-secondary:hover {
    background-color: #4CAF50;
    color: white;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}
