/* Basic Reset & Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(76, 171, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(140, 233, 154, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(76, 171, 247, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

/* Floating Elements */
.floating-element {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(76, 171, 247, 0.1), rgba(140, 233, 154, 0.1));
    animation: float 15s ease-in-out infinite;
    z-index: -1;
}

.floating-element.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-element.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 70%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

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

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Auth Card */
.auth-card {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(76, 171, 247, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(76, 171, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    animation: cardAppear 0.8s ease-out;
}

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

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4dabf7, #8ce99a, transparent);
    border-radius: 20px 20px 0 0;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #4dabf7;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(77, 171, 247, 0.3);
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #4dabf7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #94a3b8;
    font-size: 16px;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    background: rgba(15, 20, 25, 0.8);
    border: 2px solid rgba(76, 171, 247, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
    background: rgba(15, 20, 25, 0.95);
}

.form-input::placeholder {
    color: #64748b;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: rgba(100, 116, 139, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: #94a3b8;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(76, 171, 247, 0.3);
    border-radius: 4px;
    background: rgba(15, 20, 25, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked {
    background: #4dabf7;
    border-color: #4dabf7;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-group label {
    font-size: 14px;
    color: #e2e8f0;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group a {
    color: #4dabf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-group a:hover {
    color: #8ce99a;
}

/* Button Styling */
.auth-button {
    background: linear-gradient(135deg, #4dabf7, #8ce99a);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-button::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 ease;
}

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

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(77, 171, 247, 0.3);
}

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

.auth-button.secondary {
    background: transparent;
    border: 2px solid #4dabf7;
    color: #4dabf7;
}

.auth-button.secondary:hover {
    background: #4dabf7;
    color: #ffffff;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.social-button {
    background: rgba(15, 20, 25, 0.8);
    border: 2px solid rgba(76, 171, 247, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-button:hover {
    border-color: #4dabf7;
    background: rgba(77, 171, 247, 0.1);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #64748b;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(76, 171, 247, 0.2);
}

.auth-divider span {
    padding: 0 20px;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(76, 171, 247, 0.1);
}

.auth-footer p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-footer a {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #8ce99a;
}

/* Error/Success Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .auth-button {
    background: #64748b;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 15px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .auth-button {
        padding: 14px 20px;
        font-size: 14px;
    }
}

