/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f4ff 0%, #fff0f8 50%, #f0f8ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated Background Icons */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20 30h60v40H20z" fill="none" stroke="%23d8b4fe" stroke-width="2" opacity="0.3"/><path d="M30 20v10M70 20v10M30 70v10M70 70v10" stroke="%23d8b4fe" stroke-width="2" opacity="0.3"/></svg>'), */
        /* url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="30" r="8" fill="none" stroke="%23c084fc" stroke-width="2" opacity="0.4"/><path d="M30 45h40v30H30z" fill="none" stroke="%23c084fc" stroke-width="2" opacity="0.4"/><path d="M40 55h5M40 60h8M40 65h6" stroke="%23c084fc" stroke-width="2" opacity="0.4"/></svg>'), */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M25 40L50 20L75 40v35H25z" fill="none" stroke="%23a855f7" stroke-width="2" opacity="0.3"/><rect x="40" y="55" width="8" height="15" fill="none" stroke="%23a855f7" stroke-width="2" opacity="0.3"/><rect x="55" y="45" width="8" height="8" fill="none" stroke="%23a855f7" stroke-width="2" opacity="0.3"/></svg>');
        /* url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="25" width="60" height="50" rx="5" fill="none" stroke="%23f472b6" stroke-width="2" opacity="0.3"/><path d="M35 40h30M35 50h25M35 60h20" stroke="%23f472b6" stroke-width="2" opacity="0.3"/></svg>'); */
        /* url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30 25L50 15L70 25v10L50 45L30 35z" fill="none" stroke="%23ec4899" stroke-width="2" opacity="0.4"/><rect x="35" y="45" width="30" height="30" fill="none" stroke="%23ec4899" stroke-width="2" opacity="0.4"/><path d="M45 55h10M45 60h8" stroke="%23ec4899" stroke-width="2" opacity="0.4"/></svg>'); */
    background-size: 120px 120px, 80px 80px, 100px 100px, 90px 90px, 110px 110px;
    background-position: 0 0, 40px 60px, 80px 20px, 120px 80px, 20px 100px;
    animation: float 20s infinite linear;
    z-index: -1;
    pointer-events: none;
}

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

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(139, 69, 179, 0.15);
    padding: 40px;
    border: 1px solid rgba(139, 69, 179, 0.1);
    position: relative;
    z-index: 2;
}

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

.login-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 16px;
}

/* Tab Container */
.tab-container {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b45b3 0%, #c2185b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 69, 179, 0.3);
}

.tab-btn:hover:not(.active) {
    color: #8b45b3;
    background: rgba(139, 69, 179, 0.05);
}


.login-form {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #8b45b3;
    box-shadow: 0 0 0 3px rgba(139, 69, 179, 0.1);
}

.form-group input:hover {
    border-color: #c2185b;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: linear-gradient(135deg, #8b45b3 0%, #c2185b 100%);
    border-color: #8b45b3;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Forgot Password Link */
.forgot-link {
    color: #8b45b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8b45b3 0%, #c2185b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 179, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 179, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 69, 179, 0.3);
}

/* Signup Link */
.signup-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.signup-link p {
    color: #666;
    font-size: 14px;
}

.signup-link a {
    color: #8b45b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}