@font-face {
    font-family: 'Taskey';
    src: url('/assets/fonts/taskey-regular.woff2') format('woff2'),
         url('/assets/fonts/taskey-regular.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Taskey', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body { background-color: #f4f7f9; }

.login_screens {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background-image: url(/taskey_login_html/taskey/images/login_bg_image.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.wrapper_login {
    text-align: center;
    width: 100%;
}

.login-logo { margin-bottom: 0; }
.login-logo img { max-width: 280px; max-height: 100px; height: auto; object-fit: contain; }

.login-wrapper {
    width: 100%;
    max-width: 570px;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.25);
    margin: 0 auto;
}

.login-system-title {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #4da6ff, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    text-align: center;
}

/* Form fields */
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-form .field label,
.lp-field label,
.otp-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    text-align: right;
    color: #243755;
}


.login-form .field input:focus,
.lp-field input:focus,
.otp-field input:focus {
    border-color: #0F9DF1;
    box-shadow: 0 0 0 3px rgba(15,157,241,0.12);
    background: #fff;
}

/* Input with icon inside */
.login-input-wrap {
    position: relative;
}
.login-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: opacity .2s;
}
.login-input {
    width: 100%;
    height: 60px;
    border-radius: 10px;
    padding: 10px 38px 10px 14px;
    color: #333;
    background: #F2F2F2;
    outline: none;
    border: 1px solid #D7DEE9;
    font-weight: 400;
    font-size: 16px;
    text-align: right;
    transition: border-color .2s, box-shadow .2s;
}
.login-input:focus {
    border-color: #0F9DF1;
    box-shadow: 0 0 0 3px rgba(15,157,241,0.12);
    background: #fff;
}
.login-input::placeholder { color: #8a95a5; }

.field input::placeholder,
.lp-field input::placeholder,
.otp-field input::placeholder { color: #8a95a5; }

/* Forgot password link */
.forgot { color: #2c3e55; text-decoration: none; font-size: 15px; text-align: right; font-weight: 600; }
.forgot:hover { color: #0F9DF1; }

/* Primary button */
.login-btn,
.lp-btn,
.otp-btn {
    height: 50px;
    border: none;
    border-radius: 10px;
    background: #2c3e55;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 350px;
    margin: 32px auto 0;
    width: 100%;
    gap: 8px;
}
.login-btn:hover, .lp-btn:hover, .otp-btn:hover { background: #1f2f45; }

/* Outline button */
.login-google,
.otp-btn-outline {
    height: 50px;
    border: 1px solid #D7DEE9;
    border-radius: 10px;
    background: #fff;
    color: #243755;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 350px;
    margin: 12px auto 0;
    width: 100%;
    text-decoration: none;
}
.login-google:hover, .otp-btn-outline:hover { background: #f5f5f5; color: #243755; text-decoration: none; }
.login-google svg, .otp-btn-outline svg { width: 20px; height: 20px; }

/* Error / Info messages */
.login-error,
.otp-error,
.lp-result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

.otp-info,
.lp-result-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 16px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

/* OTP specific */
.otp-title { font-size: 22px; font-weight: 700; color: #243755; margin-bottom: 8px; text-align: center; }
.otp-subtitle { font-size: 14px; color: #8a95a5; margin-bottom: 24px; text-align: center; }
.otp-icon { margin-bottom: 16px; text-align: center; }
.otp-icon svg { width: 48px; height: 48px; }
.otp-field { margin-bottom: 18px; }
.otp-field input {
    width: 100%; height: 60px; border-radius: 10px; padding: 0 15px;
    color: #333; background: #F2F2F2; outline: none;
    border: 1px solid #D7DEE9; font-size: 22px; text-align: center;
    letter-spacing: 8px; font-weight: 600;
    transition: border-color .2s, box-shadow .2s;
}
.otp-field input::placeholder { letter-spacing: 0; font-size: 16px; }

/* Alt methods */
.otp-alt { margin-top: 20px; text-align: center; border-top: 1px solid #eee; padding-top: 16px; }
.otp-alt-label { font-size: 13px; color: #8a95a5; margin-bottom: 8px; }
.otp-alt a { color: #0F9DF1; text-decoration: none; font-size: 13px; font-weight: 500; }
.otp-alt a:hover { text-decoration: underline; }

/* Back link */
.otp-back,
.lp-back {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; color: #2c3e55; text-decoration: none;
    font-size: 14px; font-weight: 600;
}
.otp-back:hover, .lp-back:hover { color: #0F9DF1; }

/* Lost password toggle */
.lp-title { font-size: 22px; font-weight: 700; color: #243755; margin-bottom: 8px; text-align: center; }
.lp-subtitle { font-size: 14px; color: #8a95a5; margin-bottom: 24px; text-align: center; }
.lp-toggle {
    display: flex; justify-content: center; gap: 0;
    margin-bottom: 24px; background: #F2F2F2; border-radius: 10px;
    padding: 4px; max-width: 320px; margin-left: auto; margin-right: auto;
}
.lp-toggle-btn {
    flex: 1; padding: 10px 16px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    background: transparent; color: #8a95a5; transition: all .2s;
}
.lp-toggle-btn.lp-active { background: #fff; color: #243755; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.lp-field { margin-bottom: 18px; }
.lp-panel { display: none; }
.lp-panel.lp-panel-active { display: block; }

/* Footer */
.privacy_link {
    margin-top: 20px;
    text-align: center;
}
.privacy_link a {
    color: #0F9DF1;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.privacy_link a:hover { text-decoration: underline; }

.login-powered {
    margin-top: 12px;
    font-size: 12px;
    color: #8a95a5;
    text-align: center;
}
.login-powered a { color: #8a95a5; text-decoration: none; }
.login-powered a:hover { color: #0F9DF1; }

/* Mobile */
@media screen and (max-width: 580px) {
    .login-logo img { width: 250px; height: auto; display: block; margin: 0 auto; }
    .login-wrapper { padding: 20px 20px; }
    .login_screens { padding: 20px 16px; background: none !important; }
}
