body {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden auto;
    width: 100%;
    background-attachment: fixed;
    margin: 0;
    /* padding: 20px; */
    color: #fff;
}

html {
    overflow: auto;
    background-color: #111;
}

.glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .glass-container {
        padding: 30px;
        width: 90%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .glass-container {
        padding: 20px;
        width: 90%;
        max-width: 400px;
    }
}

.glass-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.glass-container textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

.glass-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-container textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px #80c7ff;
    transform: scale(1.02);
}

.glass-container h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #80c7ff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.glass-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.glass-container label {
    text-align: left;
    font-size: 14px;
    margin-bottom: 5px;
}

.glass-container input {
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    font-size: 14px;
    transition: all 0.3s ease;
}

.glass-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px #80c7ff;
    transform: scale(1.02);
}

.glass-container button {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #80c7ff, #3a8fd4);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.glass-container button:hover {
    background: linear-gradient(90deg, #3a8fd4, #80c7ff);
    box-shadow: 0 5px 20px rgba(128, 199, 255, 0.5);
    transform: translateY(-2px);
}

.glass-button {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #80c7ff, #3a8fd4);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: linear-gradient(90deg, #3a8fd4, #80c7ff);
    box-shadow: 0 5px 20px rgba(128, 199, 255, 0.5);
    transform: translateY(-2px);
}

.link-text, .glass-container p {
    font-size: 14px;
    margin-top: 15px;
}

a {
    color: #80c7ff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

a:hover {
    color: #a0d7ff;
    text-decoration: underline;
}

.consent-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.consent-buttons button {
    flex: 1;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: url("/favicon") no-repeat center center;
    background-size: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 9999;
}

.home-button:hover {
    transform: scale(1.15);
}

.profile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 9999;
}

.profile-menu img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.profile-menu img:hover {
    transform: scale(1.05);
}

.profile-menu .dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    min-width: 180px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.profile-menu .dropdown.active {
    display: block;
}

.profile-menu .dropdown .username {
    padding: 12px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.profile-menu .dropdown a {
    display: block;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-menu .dropdown a:hover {
    background: rgba(128, 199, 255, 0.2);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    z-index: 99999;
}

::-webkit-scrollbar-corner {
    background: transparent;
    width: 0;
    height: 0;
    border-left: 16px solid #8B7E79;
    border-top: 16px solid #8B7E79;
    border-bottom: 16px solid transparent;
    border-right: 16px solid transparent;
}

::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 2px solid #111;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #222;
    box-shadow: 0 0 8px rgba(128, 199, 255, 0.6);
}

.avatar-library {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;

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

.avatar-library-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.avatar-library-content h3 {
    margin-bottom: 20px;
    color: #80c7ff;
}

.avatar-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-button {
    width: 100%;
    height: 80px;
    border-radius: 15px;
    background: transparent;
    border: 2px dashed #80c7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #80c7ff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.upload-button:hover {
    transform: scale(1.05);
}

.upload-button::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #80c7ff;
    -webkit-mask: url('../icons/upload-arrow.svg') no-repeat center;
    -webkit-mask-size: 100% 100%;
    mask: url('../icons/upload-arrow.svg') no-repeat center;
    mask-size: 100% 100%;
}

.avatar-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 15px;
}

.avatar-list img, .avatar-list button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid #67a0cb;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.avatar-list img:hover, .avatar-list button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px 5px rgba(128, 199, 255, 0.3);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: 50%;
    mix-blend-mode: normal;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.copy-secret-btn::before {
    cursor: pointer;
    vertical-align: middle;
    width: 16px;
    height: 16px;

    content: "";
    display: inline-block;
    background-color: #80c7ff;
    -webkit-mask: url('../icons/copy.svg') no-repeat center;
    -webkit-mask-size: 100% 100%;
    mask: url('../icons/copy.svg') no-repeat center;
    mask-size: 100% 100%;
}

.copy-feedback {
    font-weight: bold;
    color: #80c7ff;
    font-size: 12px;
    margin-left: 6px;
    display: none;
}

footer {
    position: fixed;
    bottom: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    user-select: none;
    width: 100%;
    justify-content: flex-start;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin: 0% !important;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remember-me input[type="checkbox"]:hover {
    border-color: #80c7ff;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #80c7ff;
    border-color: #80c7ff;
}

.otp-inputs {
    display: flex;
    gap: 10px;
}

.otp-inputs input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border-radius: 10px;
    border: 2px solid #80c7ff;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.2s ease;
}

.otp-inputs input:focus {
    outline: none;
    border-color: #3a8fd4;
    box-shadow: 0 0 10px #80c7ff;
    background: rgba(255,255,255,0.1);
}

.gray-button {
    width: 100% !important;
    padding: 12px !important;
    border-radius: 10px !important;
    margin-bottom: 8px;
    border: none !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}