/* Reset and base styles */
body.ahovn-login-page {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background particle effect container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Login container to center the box */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* The main login box with glass effect */
.login-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 50px 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: fadeIn 0.8s ease-in-out;
    transition: all 0.3s ease;
}

.login-box:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px 0 rgba(74, 144, 226, 0.25);
}

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

/* Logo styling */
.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.login-logo a:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(74, 144, 226, 0.5));
}

.login-logo svg {
    transition: all 0.3s ease;
}

.login-logo a:hover svg {
    filter: drop-shadow(0 0 6px rgba(74, 144, 226, 0.6));
}

.login-logo .logo-text {
    margin-left: 12px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom message */
.login-message {
    text-align: center;
    margin-bottom: 30px;
}

.login-message p {
    color: #c0c0c0;
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.login-message p:first-child {
    margin-top: 0;
}

.membership-link {
    color: #ffd700 !important;
    font-weight: 500;
    padding: 10px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
    animation: pulse 2s infinite;
}

.membership-link a {
    color: #ffd700 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline;
}

.membership-link a:hover {
    color: #fff !important;
    text-decoration: underline;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

@keyframes pulse {
    0%, 100% {
        box-shadow: inset 0 0 0 rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.15);
    }
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2));
}

.login-divider span {
    margin: 0 15px;
    font-weight: 500;
}

/* WordPress Login Form Styling */
#loginform {
    border: none;
    padding: 0;
    box-shadow: none;
    background: none !important;
}

.login-box .login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-box .login p {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Input wrapper styling */
.login-box .user-pass-wrap,
.login-box .login p:has(input[type="text"]),
.login-box .login p:has(input[type="password"]) {
    position: relative;
    margin-bottom: 12px;
}

.login-box .login label {
    display: none;
}

.login-box .login input[type="text"],
.login-box .login input[type="password"] {
    background-color: rgba(74, 144, 226, 0.05);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    color: #fff;
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.login-box .login input[type="text"]::placeholder,
.login-box .login input[type="password"]::placeholder {
    color: #888;
    font-weight: 400;
}

.login-box .login input[type="text"]:hover,
.login-box .login input[type="password"]:hover {
    background-color: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.login-box .login input[type="text"]:focus,
.login-box .login input[type="password"]:focus {
    background-color: rgba(74, 144, 226, 0.12);
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2), 0 4px 12px rgba(74, 144, 226, 0.25);
}

/* Add placeholder using data attributes for custom labels */
.login-box .login input[type="text"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234A90E2" stroke-width="2" style="width:16px;height:16px;margin-right:8px"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
    background-repeat: no-repeat;
    background-position: 14px center;
    padding-left: 48px;
}

.login-box .login input[type="password"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234A90E2" stroke-width="2" style="width:16px;height:16px;margin-right:8px"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
    background-repeat: no-repeat;
    background-position: 14px center;
    padding-left: 48px;
}

/* Checkbox styling */
.login-box .forgetmenot {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-box .forgetmenot input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4A90E2;
    border-radius: 4px;
    border: 2px solid rgba(74, 144, 226, 0.4);
    background-color: rgba(74, 144, 226, 0.05);
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.login-box .forgetmenot input[type="checkbox"]:hover {
    border-color: #4A90E2;
    background-color: rgba(74, 144, 226, 0.1);
}

.login-box .forgetmenot input[type="checkbox"]:checked {
    background-color: #4A90E2;
    border-color: #4A90E2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.login-box .forgetmenot label {
    color: #b0b0b0;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    transition: color 0.3s ease;
    user-select: none;
}

.login-box .forgetmenot label:hover {
    color: #4A90E2;
}

/* Submit button */
.login-box .submit {
    margin-top: 20px;
}

.login-box .submit .button,
.login-box .submit input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: none;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: inherit;
}

.login-box .submit .button:hover,
.login-box .submit input[type="submit"]:hover {
    background: linear-gradient(135deg, #357ABD 0%, #2658a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.5);
}

.login-box .submit .button:active,
.login-box .submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.4);
}

/* Footer links */
.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.login-footer a:hover {
    color: #4A90E2;
    text-decoration: underline;
    filter: drop-shadow(0 0 3px rgba(74, 144, 226, 0.5));
}

/* Error message styling */
#login_error {
    background: linear-gradient(135deg, #dc3232, #b32424);
    border: 1.5px solid #9b1c1c;
    color: #fff;
    border-radius: 10px;
    margin-bottom: 20px !important;
    padding: 12px 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(220, 50, 50, 0.3);
}

.login-box #login_error a {
    color: #fff;
    text-decoration: underline;
}

.login-box #login_error a:hover {
    color: #ffd700;
}

/* Responsive */
@media (max-width: 600px) {
    .login-box {
        padding: 35px 25px;
    }

    .login-logo a {
        font-size: 24px;
    }

    .login-logo svg {
        height: 50px;
    }

    .login-message p {
        font-size: 14px;
    }

    .login-divider span {
        margin: 0 10px;
        font-size: 11px;
    }

    .login-box .login input[type="text"],
    .login-box .login input[type="password"] {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }

    .login-box .submit .button,
    .login-box .submit input[type="submit"] {
        padding: 12px;
        font-size: 15px;
    }
}
