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

:root {
    --blue: #3988ff;
    --cyan: #20d5ff;
    --bg: #080d18;
    --card: rgba(18, 27, 44, .92);
    --muted: #8998ae;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: white;
    font-family: Arial, sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px;
    overflow-x: hidden;
}

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .22;
    animation: float 8s infinite alternate ease-in-out;
}

.glow.one {
    background: #1266ff;
    top: -120px;
    right: -100px;
}

.glow.two {
    background: #00c8ff;
    bottom: -150px;
    left: -100px;
    animation-delay: 2s;
}

@keyframes float {
    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(70px,60px);
    }
}

.container {
    width: 100%;
    max-width: 440px;

    background: var(--card);
    border: 1px solid rgba(120,160,220,.15);

    border-radius: 25px;
    padding: 35px;

    box-shadow: 0 25px 90px rgba(0,0,0,.45);

    backdrop-filter: blur(20px);

    animation: appear .7s ease;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo-icon {
    width: 65px;
    height: 65px;

    border-radius: 20px;
    margin: auto auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    font-weight: bold;

    background: linear-gradient(135deg,#2878ff,#20d5ff);

    box-shadow: 0 8px 35px rgba(40,120,255,.3);
}

.logo h1 {
    font-size: 25px;
    letter-spacing: 1px;
}

.logo p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 9px;
}

h2 {
    font-size: 23px;
    text-align: center;
    margin-bottom: 9px;
}

.description {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 27px;
    line-height: 1.8;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 9px;
    color: #dce7f7;
}

.input-box {
    position: relative;
    margin-bottom: 19px;
}

input {
    width: 100%;
    padding: 15px;

    background: #0a1220;
    border: 1px solid #26364d;

    border-radius: 12px;
    outline: none;

    color: white;
    font-size: 14px;

    transition: .3s;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(57,136,255,.12);
}

input::placeholder {
    color: #61718a;
}

.input-box span {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);

    cursor: pointer;
    color: #8998ae;
    font-size: 12px;
}

button {
    width: 100%;
    border: none;
    border-radius: 12px;

    padding: 15px;
    cursor: pointer;

    font-size: 14px;
    font-weight: bold;

    transition: .3s;
}

.main-btn {
    color: white;
    background: linear-gradient(110deg,#2878ff,#1460d9);
    box-shadow: 0 8px 25px rgba(40,120,255,.2);
}

.main-btn:hover {
    transform: translateY(-2px);
}

.telegram-btn {
    color: white;
    background: #229ed9;
    margin-top: 13px;
}

.telegram-btn:hover {
    background: #168bc4;
}

.alert {
    padding: 13px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 17px;
    text-align: center;
}

.error {
    background: rgba(255,60,80,.1);
    color: #ff7585;
}

.success {
    background: rgba(40,200,130,.1);
    color: #50e6a5;
}

.footer {
    margin-top: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.footer a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: bold;
}

.security {
    margin-top: 22px;
    padding-top: 17px;

    border-top: 1px solid #253248;

    text-align: center;
    color: #72849c;
    font-size: 11px;
}

@media(max-width:480px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 25px 20px;
        border-radius: 20px;
    }

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

    h2 {
        font-size: 21px;
    }
}

.logo-image {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    border-radius: 15px;
    filter: drop-shadow(0 0 12px rgba(0, 217, 255, 0.35));
}

/* Egyptian Phone Input */
.phone-input {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-bottom: 18px;
}

.country-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 0 12px;
    background: rgba(37, 137, 255, 0.12);
    border: 1px solid rgba(84, 181, 255, 0.35);
    border-radius: 12px;
    color: #54b5ff;
    font-weight: bold;
}

.phone-input input {
    flex: 1;
    min-width: 0;
    margin: 0;
    text-align: left;
}

/* Password Input */
.input-box {
    position: relative;
    width: 100%;
}

.input-box input {
    width: 100%;
    padding-left: 50px;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #54b5ff;
    padding: 4px;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle.visible {
    color: #00e5ff;
    filter: drop-shadow(0 0 5px #00e5ff);
}

.password-toggle:hover {
    color: #00e5ff;
}

/* Google Login Button */
.google-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    padding: 13px 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: #ffffff;
    color: #202124;
    border: 1px solid #dadce0;
    border-radius: 12px;

    text-decoration: none;
    font-size: 14px;
    font-weight: bold;

    transition: .25s ease;
}

.google-btn:hover {
    background: #f5f7fa;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0,0,0,.2);
}

.google-btn span {
    font-size: 21px;
    font-weight: bold;
    color: #4285F4;
}

/* Forgot Password */
.forgot-password {
    text-align: left;
    margin-top: 15px;
}

.forgot-password a {
    color: #54b5ff;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password a:hover {
    color: #20d5ff;
    text-decoration: underline;
}