/**
 * Custom Login Stylesheet - Salatify AI Dark/Blue Theme
 */

:root {
    --salatify-bg: #090d16;
    --salatify-card-bg: rgba(17, 24, 39, 0.92);
    --salatify-card-border: rgba(59, 130, 246, 0.22);
    --salatify-card-glow: rgba(37, 99, 235, 0.15);
    --salatify-primary: #3b82f6;
    --salatify-primary-hover: #2563eb;
    --salatify-accent: #60a5fa;
    --salatify-text: #f1f5f9;
    --salatify-text-muted: #94a3b8;
    --salatify-input-bg: #1e293b;
    --salatify-input-border: #334155;
}

body.login {
    background-color: var(--salatify-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.18) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(30, 64, 175, 0.22) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.8) 0%, rgba(9, 13, 22, 1) 100%);
    background-attachment: fixed;
    color: var(--salatify-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login {
    width: 100%;
    max-width: 420px;
    padding: 24px 16px;
    margin: auto;
}

/* Header & Brand Logo */
#login h1 {
    text-align: center;
    margin-bottom: 24px;
}

#login h1 a {
    background-image: none !important;
    text-indent: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s ease;
}

#login h1 a:hover {
    transform: translateY(-1px);
}

#login h1 a::before {
    content: "";
    display: inline-block;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4.5 4.5a3 3 0 00-3 3v9a3 3 0 003 3h15a3 3 0 003-3v-9a3 3 0 00-3-3h-15zM10.5 8.25l5.25 3.75-5.25 3.75V8.25z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

#login h1 a::after {
    content: "Salatify AI";
    background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Container */
body.login form#loginform,
body.login form#registerform,
body.login form#lostpasswordform {
    background: var(--salatify-card-bg);
    border: 1px solid var(--salatify-card-border);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 30px var(--salatify-card-glow);
    border-radius: 16px;
    padding: 32px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Form Labels & Fields */
body.login label {
    color: var(--salatify-text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    background-color: var(--salatify-input-bg) !important;
    border: 1px solid var(--salatify-input-border) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    margin-top: 4px;
    margin-bottom: 16px;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: var(--salatify-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
    outline: none !important;
}

/* Remember Me Checkbox */
body.login .forgetmenot {
    float: none;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

body.login .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 0;
    cursor: pointer;
    color: var(--salatify-text-muted);
}

body.login input[type="checkbox"] {
    background-color: var(--salatify-input-bg) !important;
    border: 1px solid var(--salatify-input-border) !important;
    border-radius: 4px;
    width: 16px;
    height: 16px;
}

body.login input[type="checkbox"]:checked::before {
    color: var(--salatify-primary) !important;
}

/* Submit Button */
body.login .submit {
    float: none;
    margin-top: 10px;
}

body.login input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35) !important;
    text-shadow: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease-in-out !important;
}

body.login input[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
    transform: translateY(-1px);
}

body.login input[type="submit"]:active {
    transform: translateY(0);
}

/* Bottom Nav Links */
#login #nav,
#login #backtoblog {
    text-align: center;
    padding: 12px 0 0 0;
    font-size: 13px;
    color: var(--salatify-text-muted);
}

#login #nav a,
#login #backtoblog a {
    color: #93c5fd !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

#login #nav a:hover,
#login #backtoblog a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Notice / Error messages */
.login .notice,
.login .message,
.login #login_error {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    border-left: 4px solid var(--salatify-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
}

.login #login_error {
    border-left-color: #ef4444 !important;
}

.login .notice.notice-info {
    border-left-color: #3b82f6 !important;
}

/* Privacy policy */
.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 15px;
}

.login .privacy-policy-page-link a {
    color: var(--salatify-text-muted) !important;
    font-size: 12px;
}

/* Password Toggle icon */
.login .wp-hide-pw {
    color: var(--salatify-text-muted) !important;
}
