.password-container, body {
    position: relative;
    display: flex
}

.text-center, h1 {
    text-align: center
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #1a0a2e;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('http://localhost/php-social-messenger-main/src/images/planet-night-sky-scenery-anime-girl-hd-wallpaper-uhdpaper.com-68@5@f.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
    transform: scale(1.1);
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 5, 30, 0.4);
    z-index: -1;
}

.form-container {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    animation: fadeInUp 0.8s ease-out;
}
.form-container::-webkit-scrollbar {
    width: 6px;
}
.form-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
@media (max-width: 600px) {
    .form-container {
        margin: 16px 2vw;
        padding: 20px 4vw;
        max-width: 98vw
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px) scale(.98);
        opacity: 0
    }
    to {
        transform: none;
        opacity: 1
    }
}

h1 {
    margin: 0 0 30px;
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 15px rgba(167, 119, 227, 0.6);
}

.form-group {
    margin-bottom: 22px;
    position: relative
}

.form-group label {
    font-size: 1rem;
    color: #7f7fd5;
    margin-bottom: 7px;
    display: block;
    font-weight: 600;
    letter-spacing: .3px
}

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #86a8e7;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1.08rem;
    background: rgba(255, 255, 255, .98);
    outline: 0;
    transition: border .18s, background .18s, box-shadow .18s;
    color: #233050;
    font-weight: 500;
    box-shadow: 0 0 0 0 #7f7fd5
}

.form-group input:focus {
    border: 2px solid #7f7fd5;
    background: #f7faff;
    box-shadow: 0 0 0 2.5px #7f7FD540;
    animation: .45s inputPulse
}

.password-container {
    align-items: center
}

.password-container input {
    flex: 1;
    padding-right: 42px
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    cursor: pointer;
    border: none;
    background: 0 0;
    color: #86a8e7;
    transition: color .2s;
    z-index: 2
}

.password-toggle:hover, .text-center {
    color: #7f7fd5
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(145, 234, 228, 0.5);
}

.form-group #submit:disabled {
    background: #b1c6f3;
    color: #e5e5e5;
    cursor: not-allowed;
    box-shadow: none
}

.form-group #submit:hover:not(:disabled) {
    background: linear-gradient(90deg, #7f7fd5 0, #91eae4 100%);
    box-shadow: 0 2px 20px 0 rgba(127, 127, 213, .21);
    transform: translateY(-2px) scale(1.017)
}
#submit {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.3);
}

#submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 25px rgba(167, 119, 227, 0.4);
}
.text-center {
    margin-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.text-center a {
    color: #91eae4;
    text-decoration: none;
    font-weight: 600;
}


.text-center a:hover {
    color: #233050;
    text-decoration: underline
}

#confirm-password-error, #email-message, #username-error, #username-message {
    color: #e43c5a;
    font-size: .97rem;
    margin-top: 7px;
    min-height: 20px;
    display: block;
    font-weight: 600;
    letter-spacing: .05px;
    transition: color .18s
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

