/* ========================================
   LOGIN PAGE
   ======================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #f7fcfa;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 48px 40px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: loginFadeIn 0.5s ease-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    width: 120px;
    margin-bottom: 24px;
}

.login-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #222037;
}

.login-subtitle {
    color: #7c818f;
    font-size: 14px;
    margin: 0 0 32px;
}

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

.login-field {
    text-align: left;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222037;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e2e9;
    border-radius: 10px;
    font-size: 14px;
    color: #222037;
    background-color: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-field input:focus {
    border-color: #50DDC4;
    box-shadow: 0 0 0 3px rgba(80, 221, 196, 0.15);
    background-color: #fff;
}

.login-field input::placeholder {
    color: #b0b5c0;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #50DDC4, #3cc4ac);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.3px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 221, 196, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.login-error {
    background-color: #fef2f2;
    color: #DC3545;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* ========================================
   APP LAYOUT (POST-LOGIN)
   ======================================== */

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

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: #fff;
    border-bottom: 1px solid #e0e2e9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: 40px;
    height: auto;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 700;
    color: #222037;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user {
    font-size: 14px;
    color: #7c818f;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.logout-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #222037;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.logout-btn:hover {
    background-color: #DC3545;
    color: #fff;
}

.app-main {
    max-width: 900px;
    margin: 48px auto;
    padding: 0 32px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.app-main h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222037;
    margin-bottom: 12px;
}

.app-main p {
    font-size: 15px;
    color: #7c818f;
    line-height: 1.6;
}