/**
 * Admin Login Theme
 * 
 * Custom styling for the WordPress login page to match the brand
 * and provide a cohesive experience with the main site and admin area.
 * 
 * @package Admin Customizer
 */

/* ==========================================================================
   Login Page Styling
   ========================================================================== */

/* Body and Background */
body.login {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-light) 50%, var(--admin-secondary) 100%);
    background-attachment: fixed;
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

body.login:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

/* Login Container */
#login {
    width: 400px;
    padding: 8% 0 0;
    margin: auto;
}

/* Login Form */
#loginform {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

#loginform:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--admin-primary), #33bbb8, var(--admin-primary));
    border-radius: 16px 16px 0 0;
}

/* Logo */
#login h1 {
    margin-bottom: 30px;
    text-align: center;
}

#login h1 a {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 120px;
    height: 120px;
    display: inline-block;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

#login h1 a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 170, 166, 0.4);
}

#login h1 a:focus {
    box-shadow: 0 0 0 3px rgba(0, 170, 166, 0.3);
    outline: none;
}

/* Form Fields */
#loginform p {
    margin-bottom: 20px;
}

#loginform label {
    color: var(--admin-secondary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

#loginform input[type="text"],
#loginform input[type="password"] {
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    color: var(--admin-secondary);
    font-size: 16px;
    padding: 15px 20px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(0, 170, 166, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-2px);
}

/* Submit Button */
#loginform .button-primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-light));
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 30px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 170, 166, 0.3);
    position: relative;
    overflow: hidden;
}

#loginform .button-primary:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#loginform .button-primary:hover {
    background: linear-gradient(135deg, var(--admin-primary-light), #006b68);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 170, 166, 0.4);
}

#loginform .button-primary:hover:before {
    left: 100%;
}

#loginform .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 170, 166, 0.3);
}

#loginform .button-primary:focus {
    box-shadow: 0 0 0 3px rgba(0, 170, 166, 0.3), 0 4px 15px rgba(0, 170, 166, 0.3);
    outline: none;
}

/* Remember Me */
#loginform .forgetmenot {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#loginform .forgetmenot label {
    
    margin: 0;
    font-weight: 600;
}

#loginform .forgetmenot input[type="checkbox"] {
    margin: 0;
}
