/*
 * Djobsinfo.com - "Living Gradient" Creative Login
 * Version: 3.0
 * Design: Animated background with a modern glassmorphism form.
 */

/* 1. Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

/* 2. The Animated Gradient Background */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.login {
    font-family: 'Outfit', sans-serif;
    color: #ffffff; /* Default text color to white for contrast */
    background: linear-gradient(-45deg, #111827, #B91C1C, #374151, #DC2626);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* 3. The Logo */
#login {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

#login h1 a {
    /* ❗ IMPORTANT: You MUST use a white or light-colored version of your logo! */
    background-image: url('../images/djobsinfo-logo-white.svg');
    background-size: contain;
    width: 240px;
    height: 60px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); /* Adds a subtle shadow to make the logo pop */
}

/* 4. The "Glassmorphism" Login Form */
#loginform {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    backdrop-filter: blur(15px); /* The "glass" blur effect */
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-top: 0;
}

/* 5. Form Fields (Username & Password) */
#loginform .input,
#loginform input[type="text"],
#loginform input[type="password"] {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.2); /* Dark, semi-transparent fields */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 14px;
    box-shadow: none;
    margin-bottom: 20px;
}

#loginform .input::placeholder { /* Style the placeholder text */
    color: rgba(255, 255, 255, 0.5);
}

/* Focus state for fields */
#loginform .input:focus,
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    outline: none;
}

/* 6. Form Labels */
#loginform label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

/* 7. The "Log In" Button */
.wp-core-ui .button-primary {
    display: block;
    width: 100%;
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px !important;
    height: auto !important;
    line-height: inherit !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
    text-shadow: none !important;
    transition: all 0.2s ease-in-out;
}

.wp-core-ui .button-primary:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #DC2626 !important; /* Text becomes red on hover */
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 255, 255, 0.25) !important;
}

/* 8. Bottom Links & "Remember Me" */
.login .forgetmenot label,
#nav a,
#backtoblog a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.login .forgetmenot label:hover,
#nav a:hover,
#backtoblog a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#nav, #backtoblog {
    margin-top: 25px;
    padding: 0;
    text-align: center;
}