body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0f1020;
    min-height: 100vh;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0fffc1 0%, #3a7cff 100%);
    opacity: 0.15;
    pointer-events: none;
}
.container {
    position: relative;
    z-index: 1;
    background: #18192b;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 100%;
    max-width: 370px;
    margin: 4vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 490px;
    min-height: unset;
}
.form-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
}
.tab-switch {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
    background: #23244a;
    border-radius: 8px;
    overflow: hidden;
}
.tab-btn {
    flex: 1;
    padding: 0.8rem 0;
    background: none;
    border: none;
    color: #7fd7ff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s, background 0.3s, background-position 0.4s cubic-bezier(0.4,0,0.2,1);
    outline: none;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #0fffc1 0%, #3a7cff 100%);
    background-size: 200% 100%;
    background-position: right;
}
.tab-btn.active {
    color: #fff;
    background-position: left;
    background: linear-gradient(90deg, #0fffc1 0%, #3a7cff 100%);
    box-shadow: 0 2px 12px 0 #0fffc1a0;
    transition: color 0.3s, background 0.3s, background-position 0.4s cubic-bezier(0.4,0,0.2,1);
}
.tab-btn:hover {
    color: #fff;
    background-position: left;
    transition: color 0.3s, background 0.3s, background-position 0.4s cubic-bezier(0.4,0,0.2,1);
}
.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
input {
    width: 100%;
    margin-bottom: 1.1rem;
    padding: 0.85rem 1rem;
    border: 2px solid #23244a;
    border-radius: 7px;
    font-size: 1rem;
    background: #23244a;
    color: #fff;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
input:focus {
    border: 2px solid #0fffc1;
    box-shadow: 0 0 8px #0fffc1, 0 0 2px #3a7cff;
}
.main-btn {
    width: 100%;
    padding: 0.9rem 0;
    border: none;
    border-radius: 7px;
    background: linear-gradient(90deg, #0fffc1 0%, #3a7cff 100%);
    background-size: 200% 100%;
    background-position: left;
    color: #18192b;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 12px 0 #0fffc1a0;
    transition: background 0.3s, background-position 0.4s cubic-bezier(0.4,0,0.2,1), color 0.3s;
}
.main-btn:hover {
    background-position: right;
    color: #fff;
    transition: background 0.3s, background-position 0.4s cubic-bezier(0.4,0,0.2,1), color 0.3s;
}
.forgot {
    color: #0fffc1;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    display: block;
    text-align: center;
    align-self: center;
    transition: color 0.2s;
}
.forgot:hover {
    color: #3a7cff;
}
.switch-text {
    color: #b0b3ff;
    font-size: 0.98rem;
    text-align: center;
}
.switch-text a {
    color: #0fffc1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.switch-text a:hover {
    color: #3a7cff;
}
.hidden {
    display: none;
}
.author {
    text-align: center;
    color: #7fd7ff;
    font-size: 0.92rem;
    opacity: 0.5;
    margin-top: 1.2rem;
    letter-spacing: 1px;
}
@media (max-width: 500px) {
    .container {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        max-width: 98vw;
    }
    .form-title {
        font-size: 1.3rem;
    }
    .tab-btn {
        font-size: 1rem;
    }
    input, .main-btn {
        font-size: 0.98rem;
    }
} 