:root {
    --primary-color: #4facfe;
    --accent-color: #00f2fe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --input-bg: rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    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); }
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.logo {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
}

.title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 8px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.6);
}

.action-divider {
    margin: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.action-divider span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0e151f;
    padding: 0 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.bottom-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.action-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.action-text {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.buy-btn .action-icon { color: #f1c40f; }
.reg-btn .action-icon { color: #2ecc71; }

@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 30px 20px;
    }
    .title { font-size: 20px; }
}

