body {
    background: linear-gradient(-45deg, #0f0f0f, #1a1a1a, #001f3f, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite; 
    color: #ffffff;
    font-family: 'Poppins', sans-serif; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.container {
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1); 
}


h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(to right, #00d2ff, #92fe9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.3));
}
h2::before {
    content: "👤 "; 
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}


input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    direction: ltr;
    text-align: left;
}

input::placeholder {
    color: #888;
}

input:focus {
    outline: none;
    border-color: #00d2ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    transform: scale(1.03);
}


button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.5);
    filter: brightness(1.2);
}

button:active {
    transform: scale(0.98);
}


a {
    color: #00d2ff;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

a:hover {
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}


#register-form, #login-form, #profile-data {
    animation: entrance 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes entrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#dashboard {
    width: 100%;
    max-width: 600px; 
    animation: entrance 0.8s ease;
}

.dash-header {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: 0.3s ease;
    min-height: 110px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #00d2ff;
}

.stat-card .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0;
    color: #888;
}

.stat-card p {
    margin: 0;
    font-weight: bold;
    color: #00d2ff;
}

.logout-btn {
    background: linear-gradient(45deg, #ff416c, #ff4b2b) !important; 
    max-width: 200px;
}
#user-email {
   font-size: 0.69rem; 
    word-break: break-all;
    max-width: 100%;
    margin-top: 5px;
    color: #00d2ff;
}
#security-level {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    font-weight: 800;
}