/* Auth Pages Specific Styles */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.back-home:hover {
    opacity: 0.8;
}

/* Auth Card */
.auth-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
}

.auth-logo h1 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

.auth-subtitle {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #363;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

/* Forms */
.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Buttons */
.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Form Info */
.form-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.auth-footer p {
    margin: 0;
    color: #666;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Auth Features */
.auth-features {
    color: white;
}

.auth-features h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.feature-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Demo Info */
.demo-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-info p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.demo-account {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.demo-field {
    margin-bottom: 8px;
}

.demo-field:last-child {
    margin-bottom: 0;
}

.demo-field code {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.demo-note {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
    }
    
    .auth-features {
        text-align: center;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
    }
    
    .back-home {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-logo {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
}

.password-strength {
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.password-strength.weak {
    background: #fee;
    color: #c33;
}

.password-strength.medium {
    background: #ffeb3b;
    color: #ff6f00;
}

.password-strength.strong {
    background: #efe;
    color: #363;
}

.password-match {
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.password-match.error {
    background: #fee;
    color: #c33;
}

.password-match.success {
    background: #efe;
    color: #363;
}
