/* Authentication Pages Styles */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Auth Container */
.auth-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Animated Background */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 127, 45, 0.3), transparent 60%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2), transparent 60%);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(254, 127, 45, 0.1), transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

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

/* Auth Card */
.auth-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease;
}

.register-card {
    max-width: 500px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    margin-bottom: 20px;
}

.logo-text {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #fe7f2d 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: #888;
}

.form-input:focus {
    outline: none;
    border-color: #fe7f2d;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(254, 127, 45, 0.2);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Checkbox and Inline Elements */
.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #fe7f2d;
}

.checkbox-text {
    color: #e5e7eb;
    font-weight: 500;
}

.forgot-link {
    color: #fe7f2d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #ff6b35;
}

/* Auth Button */
.auth-button {
    width: 100%;
    background: linear-gradient(135deg, #fe7f2d 0%, #ff6b35 100%);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(254, 127, 45, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.auth-button:hover svg {
    transform: translateX(4px);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    color: #b0b0b0;
    font-size: 14px;
}

.auth-footer p {
    margin-bottom: 15px;
}

.auth-link {
    color: #fe7f2d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #ff6b35;
}

.back-home {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.back-home:hover {
    color: #b0b0b0;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Loading State */
.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .auth-button {
        padding: 14px 20px;
    }
    
    .form-group-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .orb-1, .orb-2, .orb-3 {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .auth-card {
        margin: 10px;
        padding: 25px 20px;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .logo-text {
        font-size: 24px;
    }
}
