@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --primary: #1c2e42;      
    --primary-dark: #0f1a25;  
    --accent: #00d2ff;       
    --accent-hover: #3a7bd5;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", sans-serif !important;
}

body {
    font-family: "Outfit", sans-serif !important;
    font-weight: 400;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), #243b55);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    color: var(--text-light);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite ease-in-out;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

.container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: rgba(28, 46, 66, 0.3); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    z-index: 2;
}

.left-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.right-panel {
    flex: 1;
    background: linear-gradient(135deg, rgba(28, 46, 66, 0.8), rgba(0, 210, 255, 0.1));
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--glass-border);
}

.right-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent, 
        rgba(0, 210, 255, 0.05),
        rgba(58, 123, 213, 0.1)
    );
    transform: rotate(0deg);
    animation: animateBorder 10s linear infinite;
    z-index: -1;
}

@keyframes animateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: var(--text-light);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.logo p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    z-index: 2;
    transition: 0.3s;
}

.form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.form-group input:focus + i {
    color: var(--accent);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    border: none;
    border-radius: 50px; 
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.5);
}

.login-button i {
    margin-right: 8px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.remember input {
    margin-right: 8px;
    accent-color: var(--accent);
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

.forgot-password:hover {
    color: #fff;
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 12px;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--glass-border);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 auto;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.social-btn i {
    font-size: 20px;
    color: var(--text-light);
}


.galaxy-icon {
    text-align: center;
    font-size: 60px;
    margin-bottom: 20px;
    color: white;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.right-panel h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.right-panel p {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
}

.feature {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
}

.feature i {
    color: var(--accent);
    margin-right: 12px;
    font-size: 18px;
}


.register {
    text-align: center;
    margin-top: 20px;
    color: white;
    font-size: 14px;
}

.register a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.register a:hover {
    color: white;
    text-decoration: underline;
}

.alert-block {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ffcccb;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 450px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        overflow: visible;
        gap: 20px;
    }

    .left-panel, .right-panel {
        background: rgba(28, 46, 66, 0.6);
        backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        padding: 30px;
    }

    .right-panel {
        order: -1;
    }
}
        #stellar-toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .stellar-toast {
            min-width: 300px;
            max-width: 400px;
            background: rgba(28, 46, 66, 0.95);
            backdrop-filter: blur(10px);
            color: #fff;
            padding: 16px 20px;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            gap: 15px;
            font-family: "Geist", sans-serif;
            font-size: 14px;
            opacity: 0;
            transform: translateX(50px);
            animation: slideIn 0.4s forwards;
        }
        .stellar-toast::before {
            content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
        }
        .stellar-toast.success::before { background: #00d2ff; box-shadow: 0 0 10px #00d2ff; }
        .stellar-toast.success .toast-icon { color: #00d2ff; font-size: 24px; }
        .stellar-toast.error::before { background: #ff4b4b; box-shadow: 0 0 10px #ff4b4b; }
        .stellar-toast.error .toast-icon { color: #ff4b4b; font-size: 24px; }
        .toast-message { flex: 1; line-height: 1.4; }
        .toast-close { cursor: pointer; opacity: 0.6; font-size: 18px; }
        .toast-close:hover { opacity: 1; }
        
        @keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
        @keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(50px); } }