/*
 * Andris Clean Login Styles
 *
 * These styles apply a dark, modern theme to the WordPress login page. They use
 * subdued backgrounds, subtle gradients and a gradient button inspired by the
 * andris.ai design. The styles target only the login page via the body class
 * `andris-clean-login` which is appended by the plugin.
 */

/* Base login page styles */
body.login.andris-clean-login {
    /* Dark gradient background similar to the andris.ai page */
    background-color: #0d0b18;
    background-image: linear-gradient(315deg, #0f0c29 0%, #302b63 74%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #e5e5e5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Center the login container and apply styling */
body.login.andris-clean-login #login {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    margin: 0 auto;
    background-color: #15181e;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Remove the default WordPress logo and replace it with site name */
body.login.andris-clean-login #login h1 a {
    background-image: none !important;
    width: auto;
    height: auto;
    display: block;
    text-indent: 0;
    margin: 0;
    padding: 0;
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

/* Remove default background and shadows from the form */
body.login.andris-clean-login #loginform {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Form paragraphs spacing */
body.login.andris-clean-login #loginform p {
    margin-bottom: 20px;
}

/* Input fields styling */
body.login.andris-clean-login .login form .input,
body.login.andris-clean-login .login input[type="text"],
body.login.andris-clean-login .login input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 8px;
    background-color: #1d2230;
    border: 1px solid #363c51;
    color: #f4f4f5;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Input placeholder color */
body.login.andris-clean-login .login form .input::placeholder {
    color: #6b7280;
}

/* Focus state for input fields */
body.login.andris-clean-login .login form .input:focus {
    border-color: #7f5af0;
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.3);
    outline: none;
    background-color: #22293d;
}

/* Checkbox styling */
body.login.andris-clean-login input[type="checkbox"] {
    border: 1px solid #363c51;
    background-color: #1d2230;
    border-radius: 4px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Primary submit button styling */
body.login.andris-clean-login input[type="submit"] {
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px 20px;
    width: 100%;
    margin-top: 8px;
    background-image: linear-gradient(90deg, #00b4db 0%, #8b5cf6 100%);
    color: #ffffff;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-position 0.3s ease, box-shadow 0.3s ease;
    background-size: 200% 100%;
    background-position: left bottom;
}

/* Button hover effect */
body.login.andris-clean-login input[type="submit"]:hover {
    background-position: right bottom;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Link styling */
body.login.andris-clean-login a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.login.andris-clean-login a:hover {
    color: #b79cff;
    text-decoration: underline;
}

/* Remember me label styling */
body.login.andris-clean-login .forgetmenot label {
    color: #e5e7eb;
    font-size: 14px;
}

/* Center navigation links */
body.login.andris-clean-login p#nav,
body.login.andris-clean-login p#backtoblog {
    text-align: center;
    margin-top: 12px;
}

/* Style the language switcher if present */
body.login.andris-clean-login .language-switcher {
    background-color: #15181e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 24px;
    padding: 12px;
}

body.login.andris-clean-login .language-switcher label,
body.login.andris-clean-login .language-switcher select {
    color: #f4f4f5;
}

body.login.andris-clean-login .language-switcher select {
    border: 1px solid #363c51;
    background-color: #1d2230;
    padding: 8px;
    border-radius: 4px;
}
