/**
 * Velvuri Auth Page Styles
 * Add this CSS to your wp-login.php page by appending the following
 * to your astra-child/functions.php:
 *
 *   add_action('login_enqueue_scripts', function() {
 *       wp_enqueue_style('vv-auth',
 *           get_stylesheet_directory_uri() . '/assets/css/auth.css');
 *   });
 *
 * Save this file as:
 *   C:\xampp\htdocs\velvuri_wp\wp-content\themes\astra-child\assets\css\auth.css
 */

/* ── Login / Register page override ─────────────────────────────────────────── */
body.login {
    background: #1a2456;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* Logo area, replace WP logo with Velvuri name.
   BUG-FIX: text-indent:0 (needed to remove WP's default off-screen hiding
   of its own logo text) had the side effect of making the real underlying
   "Powered by WordPress" anchor text visible again, stacking underneath
   the injected ::before "Velvuri" text. Fixed by collapsing the real text
   to font-size:0 and giving the pseudo-element its own explicit size,
   rather than relying on text-indent alone to hide it. */
#login h1 a {
    background-image: none !important;
    width: auto;
    height: auto;
    font-size: 0;
    color: #fff;
    text-indent: 0;
    letter-spacing: -.02em;
    display: block;
}

#login h1 a::before {
    content: "Velvuri";
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* Form container */
#login {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

#loginform,
#registerform {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    border: none;
}

/* Labels */
#loginform label,
#registerform label {
    font-size: .875rem;
    font-weight: 600;
    color: #1a2456;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#registerform input[type="text"],
#registerform input[type="email"] {
    border: 1.5px solid #d1d9f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .9375rem;
    font-family: inherit;
    color: #1a2456;
    width: 100%;
    box-sizing: border-box;
    box-shadow: none;
    outline: none;
    transition: border-color .15s;
}

#loginform input:focus,
#registerform input:focus {
    border-color: #2abfbf;
}

/* Submit button */
.button-primary,
input[type="submit"].button-primary,
#wp-submit {
    background: #2abfbf !important;
    border-color: #2abfbf !important;
    color: #fff !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: .9375rem !important;
    font-family: inherit !important;
    padding: 10px 28px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background .15s !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.button-primary:hover,
input[type="submit"].button-primary:hover {
    background: #1aa8a8 !important;
    border-color: #1aa8a8 !important;
}

/* Nav links (below form), e.g. "Lost your password?"
   BUG-FIX: rgba(255,255,255,.7) alone was reading as much lower contrast
   than intended, likely losing a specificity fight against WP core's own
   #nav a rule. Raised specificity with body.login and switched to the
   brand teal, which is unambiguous against the navy background regardless
   of what WP core is doing underneath. */
body.login #nav, body.login #backtoblog {
    text-align: center;
    padding: 8px 0;
}

body.login #nav a, body.login #backtoblog a {
    color: #2abfbf;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

body.login #nav a:hover, body.login #backtoblog a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Error / success notices */
#login_error,
.message {
    border-radius: 8px;
    border-left: none;
    padding: 12px 16px;
    font-size: .875rem;
    margin-bottom: 16px;
}

#login_error {
    background: #fee2e2;
    color: #b91c1c;
}

.message {
    background: #d1fae5;
    color: #1a7a5a;
}

/* Remember me checkbox */
.forgetmenot label {
    font-size: .8125rem;
    color: #5a6a99;
}

/* Minimal footer bar, injected via login_footer hook (functions.php).
   Deliberately not the full site footer's 4-column link grid, that would
   feel bloated on an auth page. Just enough to feel like part of the
   site rather than a bare, unbranded WordPress page. */
.vv-auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.vv-auth-footer a {
    color: rgba(255,255,255,.75);
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
}

.vv-auth-footer a:hover {
    color: #2abfbf;
}

.vv-auth-footer p {
    color: rgba(255,255,255,.4);
    font-size: .75rem;
    margin: 8px 0 0;
}
