/* SailMember Custom Login */

/* Full page background */
body.login {
    background: linear-gradient(135deg, #0e2f44 0%, #1a5276 50%, #2980b9 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Wave decoration at bottom */
body.login::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,64 C360,120 720,0 1080,64 C1260,96 1380,80 1440,64 L1440,120 L0,120Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

/* Sailboat decoration */
body.login::before {
    content: '⛵';
    position: fixed;
    bottom: 80px;
    right: 10%;
    font-size: 3rem;
    opacity: 0.08;
    z-index: 0;
    animation: sailboat-float 6s ease-in-out infinite;
}

@keyframes sailboat-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Login wrapper */
#login {
    width: 420px !important;
    max-width: 90vw;
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

/* Replace WordPress logo with SailMember branding */
#login h1 a,
.login h1 a {
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    font-size: 0;
    margin: 0 auto 30px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

#login h1 a::before {
    content: '⛵';
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

#login h1 a::after {
    content: 'SAILMEMBER';
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
    display: block;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* Login form card */
.login form,
#loginform {
    background: rgba(255, 255, 255, 0.97) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1) !important;
    padding: 36px 32px 28px !important;
    margin-top: 0 !important;
}

/* Labels */
.login form .forgetmenot,
.login label {
    color: #2c3e50 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Input fields */
.login form input[type="text"],
.login form input[type="password"],
.login form input[type="email"],
#user_login,
#user_pass {
    background: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    color: #2c3e50 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    font-family: 'Inter', sans-serif !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.4 !important;
    margin-top: 6px !important;
}

.login form input[type="text"]:focus,
.login form input[type="password"]:focus,
#user_login:focus,
#user_pass:focus {
    border-color: #1a5276 !important;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.15) !important;
    outline: none !important;
    background: #fff !important;
}

/* Submit button */
.login form .submit,
.login .submit {
    margin-top: 8px !important;
}

#wp-submit,
.login form input[type="submit"],
.login form .button-primary {
    background: linear-gradient(135deg, #e67e22, #f39c12) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    width: 100% !important;
    cursor: pointer !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.35) !important;
    transition: all 0.2s !important;
    font-family: 'Inter', sans-serif !important;
    height: auto !important;
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
}

#wp-submit:hover,
.login form input[type="submit"]:hover,
.login form .button-primary:hover {
    background: linear-gradient(135deg, #d35400, #e67e22) !important;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5) !important;
    transform: translateY(-1px) !important;
}

#wp-submit:active,
.login form input[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Remember me checkbox */
.login .forgetmenot label {
    font-size: 13px !important;
}

.login .forgetmenot input {
    accent-color: #1a5276;
}

/* Links below form */
#login #nav,
#login #backtoblog,
.login #nav,
.login #backtoblog {
    text-align: center !important;
    padding: 0 !important;
    margin: 16px 0 0 !important;
}

#login #nav a,
#login #backtoblog a,
.login #nav a,
.login #backtoblog a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color 0.2s !important;
    font-family: 'Inter', sans-serif !important;
}

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

/* Error/success messages */
.login .message,
.login #login_error {
    border-radius: 10px !important;
    border-left: 4px solid !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.login .message {
    border-left-color: #27ae60 !important;
    background: #e8f8f0 !important;
    color: #1e7e34 !important;
}

.login #login_error {
    border-left-color: #e74c3c !important;
    background: #fdedec !important;
    color: #c0392b !important;
}

/* Hide "Back to site" on login - change text via PHP */
#backtoblog a::before {
    content: '← ';
}

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

.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px !important;
}

/* Password reset form tweaks */
.login form p.indicator-hint {
    font-size: 12px !important;
    color: #6c757d !important;
}

/* Two-factor / interim login */
.login .admin-email__actions-primary .button {
    border-radius: 10px !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #login {
        width: 100% !important;
        padding: 0 16px !important;
    }

    .login form,
    #loginform {
        padding: 28px 24px 24px !important;
        border-radius: 12px !important;
    }

    #login h1 a::after {
        font-size: 1.4rem;
    }
}

/* Hide WordPress language switcher */
.language-switcher {
    display: none !important;
}
