



.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: left;
    margin-left: 10%;
}

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 90%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    color: white;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.form-group input.error {
    border-color: #ff4757;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    margin-left: 10%;
    text-align: left;
}

.slider-form-group {
    margin-bottom: 0;
}

.login-action-wrap {
    width: 90%;
    margin: 10px auto 50px;
    position: relative;
}

.login-action-wrap .login-button {
    width: 100%;
    margin: 0;
}

.slider-popup {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: 320px;
    max-width: calc(100vw - 40px);
    padding: 14px;
    transform: translateX(-50%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(18, 31, 39, 0.96);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
    z-index: 30;
}

.slider-popup-arrow {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 16px;
    height: 16px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(18, 31, 39, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.slider-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

.slider-popup-close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.slider-popup .form-group label {
    margin-left: 0;
    padding-right: 28px;
}

.slider-popup .error-message {
    margin-left: 0;
}

.slider-popup .puzzle-verify-panel,
.slider-popup .slider-verify {
    width: 100%;
}

.puzzle-verify-panel {
    width: 90%;
    height: 160px;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.22);
}

.puzzle-verify-bg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    user-select: none;
    -webkit-user-drag: none;
}

.puzzle-verify-block {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    transition: left 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

.puzzle-verify-panel.dragging .puzzle-verify-block {
    transition: none;
}

.slider-verify {
    width: 90%;
    height: 42px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.22);
    user-select: none;
    touch-action: none;
}

.slider-verify-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    transition: width 0.2s ease;
}

.slider-verify.dragging .slider-verify-progress {
    transition: none;
}

.slider-verify-text {
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 42px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    z-index: 1;
}

.slider-verify-handle {
    position: absolute;
    top: 2px;
    left: 0;
    width: 38px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 8px;
    background: #ffffff;
    color: #0077b6;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
    transition: left 0.2s ease, color 0.2s ease;
}

.slider-verify.dragging .slider-verify-handle {
    transition: none;
}

.slider-verify.verified {
    border-color: rgba(80, 182, 116, 0.9);
}

.slider-verify.verified .slider-verify-progress {
    background: linear-gradient(135deg, #2fb36f 0%, #50b674 100%);
}

.slider-verify.verified .slider-verify-text {
    color: #ffffff;
}

.slider-verify.verified .slider-verify-handle {
    color: #50b674;
}

.login-button {
    width: 90%;
    padding: 14px;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 50px;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}

.login-button:hover::before {
    opacity: 1;
}

.login-button:active {
    transform: translateY(0);
}

.login-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.login-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.extra-options {
    margin-top: 20px;
    text-align: center;
}

.extra-options a {
    color: #90e0ef;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.extra-options a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #90e0ef;
    transition: width 0.3s ease;
}

.extra-options a:hover {
    color: #00b4d8;
}

.extra-options a:hover::after {
    width: 100%;
}


.social-login {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-button {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.social-button:hover {
    border-color: #00b4d8;
    background: rgba(0, 180, 216, 0.1);
}

.social-button svg {
    width: 20px;
    height: 20px;
}

.password-toggle {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #00b4d8;
}

.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 180, 216, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    animation: slideDown 0.3s ease-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }
}
