/* Font Faces */
@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/exo2-Regular.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/exo2-Regular.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/exo2-Regular.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/exo2-Regular.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/exo2-Regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base Styles */
.bg-pattern {
    background: linear-gradient(135deg, rgb(245, 245, 248) 22px, rgba(0, 0, 0, .04) 22px, rgba(0, 0, 0, .04) 24px, transparent 24px, transparent 67px, rgba(0, 0, 0, .04) 67px, rgba(0, 0, 0, .04) 69px, transparent 69px), linear-gradient(225deg, rgb(245, 245, 248) 22px, rgba(0, 0, 0, .04) 22px, rgba(0, 0, 0, .04) 24px, transparent 24px, transparent 67px, rgba(0, 0, 0, .04) 67px, rgba(0, 0, 0, .04) 69px, transparent 69px) 0 64px;
    background-color: rgb(245, 245, 248);
    background-size: 64px 128px;
}

body {
    font-family: 'Exo 2', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.main-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 400px;
    min-width: 350px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0,0,0,0.05);
}

.container-error {
    background-color: #f1371b;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0,0,0,0.05);
}

.container-logout {
    background-color: #33A922;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0,0,0,0.05);
}

.w-40 {
    width: 60%;
    max-width: 200px;
    margin-bottom: 10px;
}

.welcome-style {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.text-style {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.push-notification-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1)
}

.form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container .form-control {
    padding-right: 50px;
}

.icon-password {
    position: absolute;
    top: 38%;
    right: 12px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.7s ease-in-out;
    pointer-events: auto;
    transform-origin: center;
}

.icon-password:hover {
    transform: translateY(-50%) scale(1.2);
    animation: spin 1.5s ease-in-out 1;
}

@keyframes spin {
    from {
        transform: translateY(-50%) scale(1.2) rotate(0deg);
    }
    to {
        transform: translateY(-50%) scale(1.2) rotate(360deg);
    }
}

#eye-off {
    display: none;
}

button {
    width: 100%;
    font-size: 14px;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #33A922;
    padding: 9px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer-text {
    font-size: 12px;
    color: #333;
    text-decoration: none;
    padding-top: 15px;
    display: inline-block;
    transition: color 0.3s;
}

.footer-link {
    font-size: 12px;
    color: #333;
    text-decoration: none;
    margin-top: 12px;
    display: inline-block;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #4CAF50;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 20px;
        box-sizing: border-box;
    }

    .main-container {
        width: 100%;
        max-width: 450px;
        min-width: auto;
    }

    .container {
        padding: 35px 25px;
    }

    .w-40 {
        width: 50%;
        max-width: 150px;
        margin-bottom: 15px;
    }

    .welcome-style {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .text-style {
        font-size: 13px;
        margin-bottom: 18px;
    }

    form {
        max-width: 100%;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        margin-bottom: 18px;
    }

    .password-container .form-control {
        padding-right: 55px;
    }

    .icon-password {
        top: 40%;
        width: 25px;
        height: 25px;
    }

    button {
        padding: 12px 20px;
        font-size: 15px;
    }

    .footer-link {
        font-size: 13px;
        margin-top: 15px;
    }

    .container-error,
    .container-logout {
        padding: 18px;
        margin-bottom: 12px;
    }

    .push-notification-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .main-container {
        max-width: 380px;
    }

    .container {
        padding: 30px 20px;
    }

    .w-40 {
        width: 45%;
        max-width: 130px;
        margin-bottom: 12px;
    }

    .welcome-style {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .text-style {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .form-control {
        padding: 13px 15px;
        margin-bottom: 16px;
    }

    .password-container .form-control {
        padding-right: 50px;
    }

    .icon-password {
        top: 39%;
        width: 25px;
        height: 25px;
    }

    button {
        padding: 11px 18px;
        font-size: 14px;
    }

    .footer-link {
        font-size: 12px;
        margin-top: 12px;
    }

    .container-error,
    .container-logout {
        padding: 15px;
        margin-bottom: 10px;
    }

    .push-notification-text {
        font-size: 14px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .main-container {
        width: 370px;
        min-width: 370px;
    }

    .container {
        padding: 40px;
    }

    .w-40 {
        width: 65%;
        max-width: 220px;
        margin-bottom: 15px;
    }

    .welcome-style {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .text-style {
        font-size: 15px;
        margin-bottom: 22px;
    }

    form {
        max-width: 320px;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 15px;
        margin-bottom: 18px;
    }

    .password-container .form-control {
        padding-right: 55px;
    }

    .icon-password {
        width: 25px;
        height: 25px;
    }

    button {
        padding: 11px 22px;
        font-size: 15px;
    }

    .footer-link {
        font-size: 13px;
        margin-top: 14px;
    }

    .container-error,
    .container-logout {
        padding: 18px;
        margin-bottom: 12px;
    }

    .fade-in-scale {
        animation: fadeInScale 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}