body {
    margin: 0;
}

.main-content {
    padding: 5px !important; /* Overwrite app.css padding */
}

.login-page {
    display: flex;
    color: var(--ivm-black);
    font-family: var(--font-body);
    font-weight: var(--font-weight-light);
    height: calc(100vh - 30px); /* 2 times 5px padding from .main-content + 2 times 10 px from the blue bar = 30px.    This makes sure you can't scroll. */
}

.login-panel {
    display: flex;
    flex: 35%;
    max-width: 35%;
    flex-direction: column;
    padding: 64px;
    margin-top: auto;
    margin-bottom: auto;
}

.login-logo {
    display: none;
}

.login-header h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0;
    font-family: var(--font-heading);
}

.login-header p {
    margin-top: 12px;
    color: var(--ivm-black);
    font-size: 1.05rem;
    font-weight: var(--font-weight-medium);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 40px;
}

.login-form label {
    display: inline-block;
    width: fit-content;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-form input {
    border: 1px solid var(--ivm-gray-medium);
    border-radius: 5px;
    padding: 14px 16px;
    font-size: 1rem;
}


.login-form input:not([type="checkbox"]):hover {
    border-color: var(--ivm-blue-dark);
    box-shadow: 0 2px 8px rgba(51, 101, 153, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#remember {
    appearance: none;
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border: 1px solid var(--ivm-gray-medium);
    border-radius: 3px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    position: absolute;
    opacity: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.remember-me:hover .remember-toggle {
    border-color: var(--ivm-blue-dark);
    box-shadow: 0 2px 8px rgba(51, 101, 153, 0.2);
}

#remember:checked {
    background: var(--ivm-blue-dark);
}

.remember-toggle {
    width: 13px;
    height: 13px;
    border: 1px solid var(--ivm-gray-medium);
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

#remember:checked + .remember-toggle::after {
    content: "✓";
    position: absolute;
    top: 2px;
    left: 1px;
    font-size: 12px;
    color: white;
    line-height: 1;
}

#remember:checked + .remember-toggle {
    background: var(--ivm-blue-dark);
    border-color: var(--ivm-blue-dark);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    margin-top: 8px;
}

.remember-me:hover {
    cursor: pointer;
    color: var(--ivm-blue-dark);
}

.remember-me input:checked {
    accent-color: var(--ivm-blue-dark);
}

.login-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    flex: 1;
    padding: 8px 0;
    font-weight: 600;
    border-radius: 8px;
    font-family: var(--font-heading);
    height: 60px;
    border: 1px solid var(--ivm-gray-medium);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--ivm-blue-dark);
    color: white;
    border-color: var(--ivm-blue-dark);
}

.btn-primary:hover {
    background: rgba(51, 101, 153, 0.9);
    box-shadow: 0 4px 12px rgba(51, 101, 153, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: var(--ivm-blue-dark);
    border-color: var(--ivm-blue-dark);
}

.btn-outline:hover {
    background: rgba(51, 101, 153, 0.3);
    box-shadow: 0 4px 12px rgba(51, 101, 153, 0.3);
    transform: translateY(-2px);
}

.login-error {
    margin-top: 20px;
    padding: 12px;
    background-color: var(--ivm-red-light);
    color: var(--ivm-orange);
    border: 1px solid var(--ivm-red-medium);
    border-radius: 5px;
}

.login-success,
.login-info {
    margin-top: 20px;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid transparent;
}

.login-success {
    background-color: var(--ivm-green);
    color: #fff;
}

.login-info {
    background-color: var(--ivm-blue);
    color: #fff;
}

.login-photo {
    position: relative;
    overflow: hidden;
    flex: 65%;
    min-width: 65%;
}

.login-photo img {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 30px);
    }

    .login-logo {
        display: block;
        height: 15vh;
        width: 15vh;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 5vh;
    }

    .login-photo {
        display: none;
    }

    .login-panel {
        flex: 1;
        max-width: 100%;
        padding: 32px 24px;
        margin-top: 0;
    }

    .login-header h1 {
        font-size: 2.2rem;
    }

    .login-buttons {
        flex-direction: column;
    }
}