/* Authentication Pages Styling */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 0;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.auth-card {
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.register-card {
    max-width: 720px;
    margin: 0 auto;
}

.auth-container.register-container {
    max-width: 720px;
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

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

/* Form Styling */
.auth-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background: var(--background-color);
    color: var(--text-color);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 1rem;
}

.strength-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    background-size: 300% 100%;
    background-position: 0% 0%;
    transition: all 0.3s ease;
}

.strength-fill[data-strength="20"] { width: 20%; background-position: 0% 0%; }
.strength-fill[data-strength="40"] { width: 40%; background-position: 25% 0%; }
.strength-fill[data-strength="60"] { width: 60%; background-position: 50% 0%; }
.strength-fill[data-strength="80"] { width: 80%; background-position: 75% 0%; }
.strength-fill[data-strength="100"] { width: 100%; background-position: 100% 0%; }

.strength-info {
    font-size: 0.875rem;
}

.strength-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.strength-text strong {
    color: var(--text-color);
}

.strength-requirements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.requirement .material-icons {
    font-size: 1rem;
    color: var(--border-color);
}

.requirement.met {
    color: var(--text-color);
}

.requirement.met .material-icons {
    color: var(--success-color);
}

/* Password Match Indicator */
.password-match {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

.password-match.error {
    color: var(--error-color);
}

.password-match .material-icons {
    font-size: 1rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s ease;
}

.forgot-link:hover {
    opacity: 0.8;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.auth-submit.processing {
    pointer-events: none;
}

.auth-submit.processing .btn-text {
    opacity: 0;
}

/* Progress Animation */
.auth-progress {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-step .material-icons {
    font-size: 1.25rem;
}

.progress-step.active {
    animation: slideInFade 0.5s ease forwards;
}

.progress-step.complete {
    opacity: 0.5;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

@keyframes slideInFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.auth-footer a:hover {
    opacity: 0.8;
}

/* Decoration */
.auth-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-circles {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(100px);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .strength-requirements {
        grid-template-columns: 1fr;
    }
}

/* Error and Success States */
.form-group.error input {
    border-color: var(--error-color);
}

.form-group.success input {
    border-color: var(--success-color);
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    color: var(--error-color);
    font-size: 0.875rem;
}

/* Toast for auth pages */
.auth-page .toast-container {
    top: 2rem;
    right: 2rem;
    left: auto;
}