/* M&A Secure Access — Login Page Styles */
*, *::before, *::after { box-sizing: border-box; }

.masa-login-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8faff 0%, #eef2f9 50%, #e8edf8 100%);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animated background pattern */
.masa-login-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.masa-login-bg::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29,53,87,.07) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: masa-float 8s ease-in-out infinite;
}
.masa-login-bg::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(69,123,157,.05) 0%, transparent 70%);
    bottom: -60px; left: -60px;
    animation: masa-float 10s ease-in-out infinite reverse;
}

@keyframes masa-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}

.masa-login-card {
    background: white;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(29,53,87,.15), 0 4px 16px rgba(29,53,87,.08);
    position: relative;
    z-index: 1;
    animation: masa-slide-up .5s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes masa-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.masa-login-logo {
    text-align: center;
    margin-bottom: 24px;
}
.masa-login-logo img {
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}

.masa-login-lock {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    animation: masa-pulse 2s ease-in-out infinite;
}
@keyframes masa-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}

.masa-login-heading {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #1d3557;
    margin: 0 0 8px;
    letter-spacing: -.5px;
}

.masa-login-subheading {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 0 0 28px;
    line-height: 1.6;
}

.masa-login-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.masa-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.masa-login-field { display: flex; flex-direction: column; gap: 6px; }
.masa-login-field label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.masa-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.masa-input-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
}

.masa-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1d3557;
    background: #fafbfe;
    transition: all .2s;
    outline: none;
}
.masa-input-wrap input:focus {
    border-color: #1d3557;
    background: white;
    box-shadow: 0 0 0 4px rgba(29,53,87,.08);
}
.masa-input-wrap input::placeholder { color: #c4c9d4; }

.masa-pw-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 14px;
    opacity: .5;
    transition: opacity .2s;
}
.masa-pw-toggle:hover { opacity: 1; }

.masa-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1d3557 0%, #2d4f7c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    letter-spacing: .3px;
    margin-top: 4px;
    box-shadow: 0 4px 16px rgba(29,53,87,.3);
}
.masa-login-btn:hover {
    background: linear-gradient(135deg, #16283f 0%, #233c60 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29,53,87,.4);
}
.masa-login-btn:active { transform: translateY(0); }
.masa-login-btn.loading { opacity: .7; pointer-events: none; }

.masa-btn-arrow { transition: transform .3s; }
.masa-login-btn:hover .masa-btn-arrow { transform: translateX(4px); }

.masa-login-footer {
    text-align: center;
    font-size: 11px;
    color: #c4c9d4;
    margin: 20px 0 0;
    line-height: 1.6;
}

/* --- NDA Overlay --- */
#masa-nda-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,20,35,.75);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: masa-fade-in .3s ease;
}
@keyframes masa-fade-in { from { opacity: 0; } to { opacity: 1; } }

#masa-nda-modal {
    background: white;
    border-radius: 20px;
    padding: 40px 44px;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    animation: masa-slide-up .4s cubic-bezier(.22,.61,.36,1) both;
}
#masa-nda-modal .masa-nda-icon { font-size: 42px; text-align: center; margin-bottom: 16px; }
#masa-nda-modal h2 { text-align: center; color: #1d3557; margin: 0 0 10px; font-size: 22px; }
.masa-nda-intro { text-align: center; color: #666; font-size: 14px; margin-bottom: 20px; }

.masa-nda-text-box {
    background: #f7f8fb;
    border: 1px solid #e2e5ec;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
    max-height: 150px;
    overflow-y: auto;
}

.masa-nda-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin-bottom: 20px;
}
.masa-nda-check-label input { margin-top: 2px; accent-color: #1d3557; flex-shrink: 0; }

#masa-nda-accept {
    width: 100%;
    padding: 13px;
    background: #1d3557;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
#masa-nda-accept:not(:disabled):hover { background: #16283f; }
#masa-nda-accept:disabled { opacity: .4; cursor: not-allowed; }

.masa-nda-decline { text-align: center; margin-top: 12px; }
.masa-nda-decline a { color: #aaa; font-size: 12px; text-decoration: none; }
.masa-nda-decline a:hover { color: #e63946; }
