/* ============================================
   FlowPro Academy — Custom Login Page Styles
   ============================================ */

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

body.login {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login {
    width: 420px;
    padding: 0;
    margin: 0 auto;
}

.login h1 a {
    background-image: url('/wp-content/uploads/flowpro-branding/logo.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 240px !important;
    height: 80px !important;
    margin: 0 auto 30px;
    display: block;
}

.login form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 40px;
    margin-top: 0;
}

.login form .input {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 14px 18px;
    border: 2px solid #e8e8ec;
    border-radius: 12px;
    background: #fafafb;
    color: #1a1a2e;
    transition: all 0.2s ease;
    box-shadow: none;
}

.login form .input:focus {
    border-color: #E855A9;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(232, 85, 169, 0.15);
    outline: none;
}

.login label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a5a;
    margin-bottom: 8px;
    display: block;
}

.login .forgetmenot {
    margin-top: 15px;
}

.login .forgetmenot label {
    font-size: 13px;
    color: #6a6a7a;
    font-weight: 400;
}

.login .forgetmenot input[type="checkbox"] {
    accent-color: #E855A9;
}

.wp-core-ui .button.button-primary {
    background: linear-gradient(135deg, #E855A9 0%, #f56d3e 50%, #F5A623 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    height: auto;
    line-height: 1.4;
    text-shadow: none;
    box-shadow: 0 8px 24px rgba(232, 85, 169, 0.35);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.wp-core-ui .button.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(232, 85, 169, 0.45);
    background: linear-gradient(135deg, #f060b8 0%, #ff7d4e 50%, #ffb833 100%);
}

.wp-core-ui .button.button-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(232, 85, 169, 0.3);
}

.wp-core-ui .button.button-primary:focus {
    box-shadow: 0 0 0 4px rgba(232, 85, 169, 0.25), 0 8px 24px rgba(232, 85, 169, 0.35);
}

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

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

.login #nav {
    text-align: center;
    margin-top: 20px;
}

.login #backtoblog {
    text-align: center;
    margin-top: 10px;
}

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

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

.login .privacy-policy-page-link a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.wp-core-ui .button.wp-hide-pw {
    background: transparent;
    border: none;
    color: #9a9aaa;
}

.wp-core-ui .button.wp-hide-pw:hover {
    color: #E855A9;
}

@keyframes flowproShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.login .shake {
    animation: flowproShake 0.5s ease-in-out;
}

.login #login_error,
.login .message {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(232, 85, 169, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.login #login_error {
    border-left: 4px solid #EF4444;
}

.login .message {
    border-left: 4px solid #10B981;
}

.login .language-switcher {
    margin-top: 20px;
    text-align: center;
}

.login .language-switcher select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    padding: 8px 12px;
}

@media screen and (max-width: 480px) {
    #login {
        width: 90%;
        padding: 0 5%;
    }
    .login form {
        padding: 30px 24px;
        border-radius: 16px;
    }
    .login h1 a {
        width: 200px !important;
        height: 66px !important;
    }
}
