﻿.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.3s;
}

    .login-modal-overlay.active {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

.login-card {
    background: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 465px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
    position: relative;
    overflow: hidden;
}

    .login-logo {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .login-form-container {
        position: relative;
        transition: height 0.3s ease;
        overflow: hidden;
    }

    .login-form-wrapper {
        position: absolute;
        width: 100%;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

        .login-form-wrapper.active {
            transform: translateX(0);
            opacity: 1;
        }

        .login-form-wrapper.slide-left {
            transform: translateX(-100%);
            opacity: 0;
            pointer-events: none;
        }

        .login-form-wrapper.slide-right {
            transform: translateX(100%);
            opacity: 0;
            pointer-events: none;
        }

    .login-subtitle {
        color: #666;
        margin-bottom: 32px;
        font-size: 14px;
        text-align: center;
    }

    .login-form-group {
        margin-bottom: 20px;
    }

    .login-form-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .login-forgot-link {
        color: #1a1a1a;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
    }

        .login-forgot-link:hover {
            text-decoration: underline;
        }

    .login-error-message {
        color: #ef4444;
        font-size: 12px;
        margin-top: 6px;
        display: none;
    }

        .login-error-message.show {
            display: block;
        }

    .login-password-wrapper {
        position: relative;
    }

    .login-toggle-password {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        color: #999;
    }

.login-login-btn,
.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: #1f305a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

        .login-login-btn:hover,
        .login-submit-btn:hover {
            background: #f26f33;
        }

    .login-switch-text {
        text-align: center;
        margin-top: 24px;
        font-size: 14px;
        color: #666;
    }

    .login-switch-link {
        color: #005f69;
        text-decoration: none;
        font-weight: 500;
        cursor: pointer;
    }

        .login-switch-link:hover {
            text-decoration: underline;
        }

    .login-input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        transition: border-color 0.3s;
        background: white;
    }

        .login-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .login-input.error {
            border-color: #ef4444;
        }

        .login-input.success {
            border-color: #10b981;
        }


    .login-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
    }

    .login-title {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

        .login-title > img {
            margin-bottom: 10px;
        }

    .no-scroll {
        overflow: hidden;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }


@media (max-width: 768px) {
    .login-card {
        padding:20px;
    }

    .login-login-btn, .login-submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

.wp-btn-login:hover {
    cursor: pointer;
}