/*
 * Login Page Specific Styles
 */

/* ============================================
   LOGIN PAGE LAYOUT
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 1rem 0;
    background-color: #f3f4f6;
}

.login-container {
    width: 100%;
    max-width: 48rem;
}

/* ============================================
   LOGIN FORM WRAPPER (TRAPEZOID DESIGN)
   ============================================ */
.login-form-wrapper {
    position: relative;
    height: 320px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.login-brand-section {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #1e3a8a;
    clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
    display: flex;
    align-items: center;
}

.login-brand-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin-left: 5%;
    margin-top: -20px;
}

.login-form-section {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #ffffff;
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.login-form {
    width: 100%;
    max-width: 24rem;
    padding: 0 2rem;
    margin-right: 5%;
}

/* ============================================
   LOGIN FORM FIELDS
   ============================================ */
.login-fields {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.login-input {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    text-align: center;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.login-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.login-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.login-input-username {
    width: 50%;
}

.login-password-wrapper {
    width: 65%;
    position: relative;
}

.login-input-password {
    width: 100%;
    padding-right: 2.5rem;
}

/* ============================================
   PASSWORD TOGGLE BUTTON
   ============================================ */
.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.15s ease;
}

.password-toggle-btn:hover {
    color: #4b5563;
    background-color: #f3f4f6;
}

.password-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================
   LOGIN SUBMIT BUTTON
   ============================================ */
.login-submit-btn {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    border: none;
    background: linear-gradient(to bottom, #1e3a8a, #1e40af);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    transition: all 0.2s ease;
}

.login-submit-btn:hover {
    background: linear-gradient(to bottom, #172554, #1e3a8a);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    transform: translateY(-1px);
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
}
