/**
 * HARU Business Platform - Pixel-Perfect Ex002 Login Style
 */

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

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    background-color: #f1f5f9;
}

/* Background Image with Blur */
.bg-image-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../assets/bg-main.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    transform: scale(1.05); /* Prevents blur bleeding at borders */
    z-index: 0;
    pointer-events: none;
}

.bg-overlay-tint {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    pointer-events: none;
}

/* Subtle Star Sparkle Bottom Right (as in Ex002) */
.bg-sparkle-star {
    position: fixed;
    bottom: 40px;
    right: 50px;
    font-size: 38px;
    color: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Central Login Card */
.login-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 38px 36px 28px;
    text-align: center;
    animation: cardAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Logo Box */
.logo-wrapper {
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.haru-logo-svg {
    width: 58px;
    height: 52px;
}

.brand-heading {
    font-size: 24px;
    font-weight: 800;
    color: #0b2239;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.brand-subheading {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Form Groups */
.form-field-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.show-pwd-link {
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.show-pwd-link:hover {
    color: #2563eb;
}

.field-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: #475569;
    font-size: 15px;
    pointer-events: none;
}

.field-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 42px;
    background: #ffffff;
    border: 1.5px solid #1e3a5f;
    border-radius: 10px;
    color: #0f172a;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.field-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.field-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.eye-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.eye-toggle-btn:hover {
    color: #0f172a;
}

/* Links Row */
.auth-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
}

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Green Log In Button */
.btn-login-green {
    width: 100%;
    height: 46px;
    background: #4ea863;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(78, 168, 99, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-green:hover {
    background: #439757;
    box-shadow: 0 6px 16px rgba(78, 168, 99, 0.4);
    transform: translateY(-1px);
}

.btn-login-green:active {
    transform: translateY(0);
}

/* Social Sign In Divider & Buttons */
.social-signin-wrap {
    margin-top: 20px;
}

.social-label {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 12px;
}

.social-btns-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.social-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.social-icon-img {
    width: 20px;
    height: 20px;
}

/* Footer URL */
.card-bottom-url {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Alert Notification */
.login-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.login-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.login-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Select field for registration */
.select-field-input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    background: #ffffff;
    border: 1.5px solid #1e3a5f;
    border-radius: 10px;
    color: #0f172a;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-field-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.role-badge-info {
    font-size: 11.5px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    margin-top: 6px;
    line-height: 1.4;
    text-align: left;
}

