/* Login Page Styles - Flexbox Layout */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Mochiy+Pop+One&family=Poppins:wght@400;700&display=swap');

.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: white;
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 402px;
    height: 874px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 20px 40px 20px;
    box-sizing: border-box;
}

/* Background Elements - Positioned Absolutely */
.blue-creature {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 157px;
    height: 150px;
    z-index: 1;
}

.blue-creature img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orange-ball {
    position: absolute;
    bottom: 25%;
    left: 5%;
    width: 241px;
    height: 239px;
    z-index: 1;
}

.orange-ball img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.green-eye {
    position: absolute;
    top: 8%;
    right: 15%;
    width: 100.59px;
    height: 100.22px;
    z-index: 1;
}

.green-eye img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Back Button - Positioned Absolutely */
.back-button {
    position: absolute;
    top: 15px;
    left: 27px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    color: #000000;
    width: 95px;
    height: 30px;
}

.back-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
}

.back-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.back-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.22;
    color: #000000;
}

/* Main Content Wrapper */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
    z-index: 10;
    gap: 20px;
}

/* Header Section */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

/* Main Title */
.login-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.22;
    color: #000000;
    margin: 0;
    text-align: center;
}

/* General Error Message */
.general-error-message {
    width: 100%;
    text-align: center;
    z-index: 10;
}

.error-text {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.error-text:not(:last-child) {
    margin-bottom: 4px;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
    z-index: 10;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 316px; /* Fixed width */
    max-width: 316px;
}

.form-input {
    width: 316px; /* Fixed width */
    height: 50px;
    background: #D9D9D9;
    border: 3px solid #000000;
    border-radius: 30px;
    padding: 0 20px;
    font-family: 'Mochiy Pop One', cursive;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.5);
    outline: none;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.form-input:focus {
    background: #FFFFFF;
    color: #000000;
    z-index: 15;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-family: 'Mochiy Pop One', cursive;
    font-size: 14px;
    line-height: 1.45;
}

/* Error Messages */
.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    padding-left: 20px;
}

.form-input.error {
    border-color: #e53e3e;
    background: #ffe6e6;
}

/* Forgot Password Link */
.forgot-password {
    font-family: 'Mochiy Pop One', cursive;
    font-size: 14px;
    line-height: 1.45;
    color: #000000;
    text-decoration: none;
    z-index: 10;
    text-align: center;
    margin-top: 5px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    width: 316px; /* Fixed width */
    max-width: 316px;
    height: 50px;
    background: #000000;
    border: 3px solid #000000;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.button-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.5;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.form-footer {
    width: 100%;
    text-align: center;
    z-index: 10;
    margin-top: 10px;
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.footer-link {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        width: 100vw;
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 40px 20px;
    }

    .login-title {
        font-size: 32px;
    }

    .main-content {
        max-width: 100%;
        gap: 15px;
    }

    /* Keep form elements at fixed size */
    .form-group {
        width: 316px;
        max-width: 316px;
    }

    .form-input {
        width: 316px;
    }

    .submit-button {
        width: 316px;
        max-width: 316px;
    }

    /* Background Elements Responsive */
    .blue-creature {
        width: 100px;
        height: 95px;
        bottom: 15%;
        right: 5%;
    }

    .orange-ball {
        width: 150px;
        height: 149px;
        bottom: 30%;
        left: 5%;
    }

    .green-eye {
        width: 60px;
        height: 60px;
        top: 12%;
        right: 10%;
    }

    .back-button {
        left: 20px;
        top: 30px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 80px 15px 30px 15px;
    }

    .login-title {
        font-size: 28px;
    }

    .main-content {
        gap: 12px;
    }

    /* Keep form elements at fixed size */
    .form-group {
        width: 316px;
        max-width: 316px;
    }

    .form-input {
        width: 316px;
    }

    .submit-button {
        width: 316px;
        max-width: 316px;
    }

    .blue-creature {
        width: 80px;
        height: 76px;
        bottom: 12%;
        right: 3%;
    }

    .orange-ball {
        width: 120px;
        height: 119px;
        bottom: 25%;
        left: 3%;
    }

    .green-eye {
        width: 50px;
        height: 50px;
        top: 10%;
        right: 8%;
    }

    .back-button {
        left: 15px;
        top: 25px;
        width: 35px;
        height: 35px;
    }

    .back-arrow {
        width: 20px;
        height: 20px;
    }

    .footer-text {
        font-size: 12px;
    }

    .button-text {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 70px 10px 25px 10px;
    }

    .login-title {
        font-size: 24px;
    }

    /* Only resize on very small screens */
    .form-group {
        width: calc(100vw - 40px);
        max-width: 300px;
        min-width: 280px;
    }

    .form-input {
        width: calc(100vw - 40px);
        max-width: 300px;
        min-width: 280px;
    }

    .submit-button {
        width: calc(100vw - 40px);
        max-width: 300px;
        min-width: 280px;
    }

    .green-eye {
        width: 45px;
        height: 45px;
        top: 8%;
        right: 6%;
    }

    .orange-ball {
        width: 100px;
        height: 99px;
        bottom: 20%;
        left: 2%;
    }

    .blue-creature {
        width: 70px;
        height: 67px;
        bottom: 10%;
        right: 2%;
    }

    .back-button {
        left: 10px;
        top: 20px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.rotate-animation {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}