/* auth.css - Authentication page styles */

/* Auth page container */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-page .row {
    width: 100%;
    margin: 0;
}

/* Enhanced auth card */
.auth-card-enhanced {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 100%;
    max-width: 650px;
    min-height: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-card-enhanced.login-mode {
    min-height: 400px;
}

.auth-card-enhanced.signup-mode {
    min-height: 550px;
}

/* Responsive padding adjustments */
@media (max-width: 700px) {
    .auth-card-enhanced {
        width: 90vw;
        max-width: 650px;
        padding: 2rem 1.5rem;
    }
    
    .auth-brand h1 {
        font-size: 2rem;
    }
}

.auth-card-enhanced:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-light);
}

/* Logo/branding area */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--btn-service);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    letter-spacing: -0.5px;
    display: block;
}

.auth-brand p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Form styles */
.form-floating > label {
    color: var(--text-secondary);
}

.form-floating > .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--btn-service);
    box-shadow: 0 0 0 0.2rem rgba(32, 178, 170, 0.25);
    color: var(--text-primary);
}

/* Enhanced button */
.btn-auth-primary {
    background: linear-gradient(135deg, var(--btn-service) 0%, #1a9a93 100%);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
    color: white;
}

.btn-auth-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-auth-primary:hover::before {
    left: 100%;
}

/* Feature list for beta signup */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    overflow: hidden;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--btn-service);
    border-radius: 50%;
    box-shadow: none;
}

/* Divider with text */
.divider-text {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.divider-text span {
    background-color: var(--bg-secondary);
    padding: 0 1rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Links */
.auth-card-enhanced a {
    color: var(--btn-service);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-card-enhanced a:hover {
    color: var(--btn-service-hover);
    text-decoration: underline;
}

/* Alert styling */
.auth-card-enhanced .alert {
    border-radius: 8px;
    padding: 1rem;
}

.auth-card-enhanced .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.auth-card-enhanced .alert-info {
    background-color: rgba(32, 178, 170, 0.1);
    border: 1px solid rgba(32, 178, 170, 0.3);
    color: var(--btn-service);
}

/* Success box for beta signup */
.auth-success-box {
    background-color: rgba(32, 178, 170, 0.1);
    border: 1px solid rgba(32, 178, 170, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--btn-service);
    margin-bottom: 1.5rem;
}

/* Form validation */
.auth-card-enhanced .form-control.is-invalid {
    border-color: #ff6b6b;
}

.auth-card-enhanced .invalid-feedback {
    display: block;
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-card-enhanced {
        padding: 2rem;
        margin: 1rem;
    }
    
    .auth-brand h1 {
        font-size: 2rem;
    }
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid var(--bg-primary);
    animation: spin 1s linear infinite;
}

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

/* Form mode toggle */
.form-mode-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.mode-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mode-btn.active {
    background: var(--btn-primary-bg);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Form sections */
.form-section {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.form-section.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Smooth content wrapper */
.form-content-wrapper {
    position: relative;
    min-height: 300px;
}

/* Beta notice */
.beta-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ffd93d;
}

.beta-notice i {
    margin-right: 8px;
}

/* Feature list - additional styling */
.feature-list {
    font-size: 14px;
}

.feature-list li {
    line-height: 1.5;
    z-index: 1;
}

/* Login welcome message */
.login-welcome-message h5 {
    color: var(--text-primary);
    font-weight: 600;
}

.login-welcome-message p {
    font-size: 0.95rem;
    line-height: 1.5;
}