/* Modern Login Styles - Hope Rising Colors */
/* Colors: #894fa0 (purple), #e8b622 (yellow), #084a52 (dark teal) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #894fa0 0%, #084a52 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Particles.js Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.content-overlay {
    z-index: 2;
}


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

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #894fa0, #e8b622, #084a52);
    border-radius: 24px 24px 0 0;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 310px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    color: #084a52;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    color: #894fa0;
    font-weight: 500;
    margin-bottom: 4px;
}

.welcome-text {
    font-size: 18px;
    color: #084a52;
    font-weight: 600;
    margin-bottom: 8px;
}

.instruction-text {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    margin-top: 32px;
}

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

.form-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #084a52;
    margin-bottom: 8px;
}

.form-label .icon {
    margin-right: 8px;
    color: #894fa0;
    font-size: 16px;
}

.form-input {
    width: 100%;
    height: auto !important;
    padding: 10px !important;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-weight: 500;
    background: #fff;
    transition: all 0.3s ease;
    color: #084a52;
}

.form-input:focus {
    outline: none;
    border-color: #894fa0;
    box-shadow: 0 0 0 4px rgba(137, 79, 160, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    margin-right: 12px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkbox-mark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.custom-checkbox input:checked+.checkbox-mark {
    background: #894fa0;
    border-color: #894fa0;
}

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

.checkbox-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

/* Button Styles */
.login-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #894fa0 0%, #084a52 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-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;
}

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

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(137, 79, 160, 0.3);
}

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

.login-button .icon {
    font-size: 18px;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e1e5e9;
}

.copyright {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 32px 24px;
        margin: 20px;
        border-radius: 20px;
    }

    .logo-title {
        font-size: 24px;
    }

    .welcome-text {
        font-size: 16px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .login-button {
        padding: 14px 20px;
        font-size: 15px;
    }

}

@media (max-width: 480px) {
    .login-container {
        padding: 24px 20px;
        margin: 16px;
    }

    .logo {
        max-width: 100px;
    }

    .logo-title {
        font-size: 22px;
    }

    #particles-js {
        opacity: 0.8;
    }

}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error States */
.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Success States */
.form-input.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #particles-js {
        display: none;
    }

    .login-button::before {
        display: none;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .login-container {
        background: white;
        border: 2px solid #000;
    }

    .form-input {
        border-color: #000;
    }

    .login-button {
        background: #000;
        border: 2px solid #000;
    }
}