.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-left: 15rem;
}

.back-link i,
.back-link span {
    color: var(--blue);
}

.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;

    height: 100%;
    width: 100%;
    max-width: 1410px;

    margin-top: 3rem;
}

.login-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: fit-content;

    padding: 2.5rem;
    margin-top: 1.5rem;

    background-color: white;
    border-radius: 1rem;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.login-image {
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 3rem;
}

.login-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: -200px center;
    border-radius: 1rem;
}

.login-form-wrapper {
    width: 400px;
}

.form-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-title {
    color: black;
}

.form-subtitle {
    color: black;
    font-weight: bold;
    font-size: 1.4rem;
    margin-top: -0.3rem;
}

.form-subtitle span {
    color: var(--blue);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
    margin-top: 2rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input {
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 45, 77, 0.1);
}

.form-input.is-invalid {
    border-color: #e53e3e;
}

.form-input::placeholder {
    color: #a0aec0;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-input {
    width: 100%;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
}

.forgot-password {
    align-self: flex-end;
    color: var(--blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--red);
}

.form-footer {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.form-footer button {
    background-color: var(--blue);
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    border: 0;
    border-radius: 8px;
    padding: 0.7rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-footer button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-footer button:hover::before {
    left: 100%;
}

.form-footer button:hover {
    background-color: color-mix(in srgb, var(--blue) 90%, black);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.signup-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.signup-link a {
    color: var(--blue);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.signup-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue);
    transition: width 0.3s ease;
}

.signup-link a:hover::after {
    width: 100%;
}

.alert-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.alert-message i {
    font-size: 1rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-success i {
    color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-error i {
    color: #dc3545;
}

@media (max-width: 768px) {
    .login-image {
        display: none;
    }

    .back-link {
        margin-left: 10%;
        font-size: 0.8rem;
    }

    .login-page {
        margin-top: 15%;
        margin-bottom: 7rem;
    }

    .icons-mobile::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 40vh;
        background-color: #3b82f6;
        border-radius: 0 0 60px 310px;
        z-index: -1;
    }

    .icons-mobile::after {
        content: "";
        position: absolute;
        bottom: 30px;
        left: -10px;
        width: 300px;
        height: 400px;
        background-color: #3b82f6;
        border-radius: 40px 200px 0px 30px;
        opacity: 0.8;
        z-index: -1;
    }

    .login-container {
        width: 85%;
        margin-top: 1rem;
        padding: 2.5rem 2rem;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .form-subtitle {
        font-size: 1.1rem;
    }

    .form-header {
        gap: 0.4rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .forgot-password {
        font-size: 0.8rem;
    }

    .form-footer button,
    .signup-link {
        font-size: 0.8rem
    }

    .back-link span, .back-link i {
        color: white;
    }

    .alert-message, .alert-success, .alert-error {
        font-size: 0.8rem;
    }
}