/* ===================================
   RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1d1d1f;
}

/* ===================================
   MAIN WRAPPER
   =================================== */
.login-wrapper {
    width: 100%;
    max-width: 440px;
    text-align: center;
}

/* ===================================
   LOGO ICON
   =================================== */


.logo-icon img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* ===================================
   HEADER
   =================================== */
.header {
    margin-bottom: 32px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 15px;
    color: #86868b;
    font-weight: 400;
}

/* ===================================
   LOGIN CARD
   =================================== */
.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ===================================
   FORM
   =================================== */
form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ===================================
   INPUT FIELDS
   =================================== */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1d1d1f;
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    background: white;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

input::placeholder {
    color: #86868b;
}

/* ===================================
   PASSWORD FIELD
   =================================== */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    width: auto;
    height: auto;
}

.toggle-password:hover {
    color: #1d1d1f;
}

.toggle-password svg {
    display: block;
}

/* ===================================
   ERROR MESSAGE
   =================================== */
.error-msg {
    color: #d32f2f;
    font-size: 13px;
    padding: 12px 16px;
    background: #fdecea;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    display: none;
}

.error-msg:not(:empty) {
    display: block;
}

/* ===================================
   SIGN IN BUTTON
   =================================== */
.signin-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: white;
    background: #0066cc;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.signin-btn:hover {
    background: #0055b3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.signin-btn:active {
    transform: scale(0.98);
}

/* ===================================
   SIGNUP TEXT
   =================================== */
.signup-text {
    font-size: 14px;
    color: #86868b;
    text-align: center;
}

.signup-text a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.signup-text a:hover {
    text-decoration: underline;
}

/* ===================================
   SUCCESS MESSAGE
   =================================== */
.success-msg {
    color: #0f5132;
    font-size: 13px;
    padding: 12px 16px;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-left: 4px solid #34c759;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    margin-top: 32px;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #86868b;
}

.heart-icon {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.mz-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .logo-icon img {
        width: 110px;
        height: 110px;
    }

    .header h1 {
        font-size: 24px;
    }

    .header p {
        font-size: 14px;
    }

    .login-card {
        padding: 32px 24px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 11px 14px;
        font-size: 16px;
    }

    .signin-btn {
        padding: 13px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 28px 20px;
    }

    .header h1 {
        font-size: 22px;
    }
}

/* ===================================logo-icon
   LANDSCAPE MODE
   =================================== */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 12px;
    }logo-icon

    .logo-icon {
        margin-bottom: 16px;
    }

    .logo-icon img {
        width: 110px;
        height: 110px;
    }

    .header {
        margin-bottom: 20px;
    }

    .header h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .header p {
        font-size: 13px;
    }

    .login-card {
        padding: 28px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .signin-btn {
        margin-bottom: 16px;
    }

    .footer {
        margin-top: 20px;
    }
}