@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0b0f19;
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 41, 59, 0.7) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 70, 239, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.9) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(17, 24, 39, 0.9) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    color: #f3f4f6;
    padding: 20px;
}

/* Glowing Mesh Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.glow-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(79, 70, 229, 0) 70%);
    top: -10%;
    left: 5%;
    animation: floatOrb1 25s infinite alternate ease-in-out;
}

.glow-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.6) 0%, rgba(162, 28, 175, 0) 70%);
    bottom: -10%;
    right: 5%;
    animation: floatOrb2 30s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -50px) scale(1.1); }
}

/* Login Container */
.login-container {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 20px 40px -15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 2.25rem;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.brand-logo {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.2));
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Forms & Inputs */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    padding-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px 12px 44px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.form-input::placeholder {
    color: #475569;
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.form-input:focus ~ .input-icon {
    color: #6366f1;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #94a3b8;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Submit Button */
.btn-submit {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #4f46e5 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(79, 70, 229, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-submit:hover {
    background-position: right center;
    box-shadow: 
        0 6px 20px rgba(79, 70, 229, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.btn-submit:active {
    transform: scale(0.985);
    box-shadow: 
        0 2px 8px rgba(79, 70, 229, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Alerts / Error Feedback */
.alert-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 0.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-error .alert-icon {
    color: #f87171;
}

.alert-success .alert-icon {
    color: #34d399;
}

.alert-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-text {
    font-size: 0.875rem;
    color: #f87171;
    font-weight: 500;
    line-height: 1.4;
}

.alert-success .alert-text {
    color: #34d399;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 2.25rem 1.75rem;
        border-radius: 24px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
}
