/* ══════════════════════════════════════════════════════
   LOTUS ERP — Custom Login Page Styles
   Premium dark-mode glassmorphism design
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Body / Background ──────────────────────────────── */
body.login {
    background: #0f172a;
    font-family: 'Inter', -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Geometric grid lines */
body.login::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── Login Wrapper ──────────────────────────────────── */
#login {
    width: 380px;
    padding: 0;
    padding-top: 40px;
    position: relative;
    z-index: 10;
}

/* ── Logo ───────────────────────────────────────────── */
#login h1 a {
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-indent: 0 !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    padding: 0 0 8px 0;
    position: relative;
}

/* Lotus icon SVG via CSS */
#login h1 a::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 85 C50 85 20 70 20 45 C20 30 35 20 50 25 C65 20 80 30 80 45 C80 70 50 85 50 85Z' fill='%2306b6d4' opacity='0.9'/%3E%3Cpath d='M50 25 C50 25 30 15 15 25 C5 32 8 50 20 45' fill='%2306b6d4' opacity='0.5'/%3E%3Cpath d='M50 25 C50 25 70 15 85 25 C95 32 92 50 80 45' fill='%2306b6d4' opacity='0.5'/%3E%3Ccircle cx='50' cy='52' r='10' fill='%230f172a' opacity='0.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* "ERP" kelimesine cyan renk */
#login h1 a span {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Login Form Card ────────────────────────────────── */
#loginform,
#lostpasswordform {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 20px !important;
    padding: 36px !important;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(6, 182, 212, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* ── Labels ─────────────────────────────────────────── */
#loginform label,
#lostpasswordform label {
    color: rgba(255, 255, 255, 0.60) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 6px !important;
}

/* ── Inputs ─────────────────────────────────────────── */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#lostpasswordform input[type="text"],
#lostpasswordform input[type="email"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 12px 16px !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
    outline: none !important;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#lostpasswordform input[type="text"]:focus {
    background: rgba(6, 182, 212, 0.08) !important;
    border-color: rgba(6, 182, 212, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15) !important;
}

/* Placeholder */
#loginform input::placeholder,
#lostpasswordform input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* ── Remember Me & Forgot Password ─────────────────── */
.forgetmenot label {
    color: rgba(255, 255, 255, 0.50) !important;
    font-size: 12px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

input#rememberme {
    accent-color: #06b6d4 !important;
}

/* ── Submit Button ──────────────────────────────────── */
#wp-submit,
#loginform .button-primary,
#lostpasswordform .button-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    padding: 13px 24px !important;
    height: auto !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35) !important;
    text-shadow: none !important;
}

#wp-submit:hover,
#loginform .button-primary:hover,
#lostpasswordform .button-primary:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%) !important;
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.50) !important;
    transform: translateY(-1px) !important;
}

#wp-submit:active {
    transform: translateY(0) !important;
}

/* ── Nav / Links ────────────────────────────────────── */
#nav,
#backtoblog {
    text-align: center;
    padding: 12px 0 4px !important;
}

#nav a,
#backtoblog a,
.privacy-policy-page-link {
    color: rgba(6, 182, 212, 0.80) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

#nav a:hover,
#backtoblog a:hover {
    color: #06b6d4 !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5) !important;
}

/* ── Language Switcher ──────────────────────────────── */
.language-switcher {
    display: none !important;
}

/* ── Error / Message ────────────────────────────────── */
#login_error,
.message,
.success {
    background: rgba(239, 68, 68, 0.10) !important;
    border-left: 3px solid #ef4444 !important;
    border-radius: 8px !important;
    color: #fca5a5 !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    margin-bottom: 16px !important;
}

.message {
    background: rgba(6, 182, 212, 0.10) !important;
    border-left-color: #06b6d4 !important;
    color: #67e8f9 !important;
}

/* ── Password Visibility Eye ────────────────────────── */
.wp-pwd button {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.40) !important;
    border: none !important;
}

.wp-pwd button:hover {
    color: #06b6d4 !important;
}

/* ── Footer / Branding ──────────────────────────────── */
.login #login_footer,
body.login footer {
    display: none;
}

/* Custom footer via #login-footer-custom */
#lotus-login-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

#lotus-login-footer span {
    color: rgba(6, 182, 212, 0.60);
    font-weight: 600;
}

/* ── Animasyon ──────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#login {
    animation: fadeInUp 0.5s ease both;
}