/* -- log in side -- */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f4f8;
}

/* Wrapper for hele login-visningen */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
    background-color: #f0f4f8;
}

/* Venstre del med logo */
.login-image {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-image img {
    max-width: 80%;
    height: auto;
}

/* Høyre del med skjema */
.login-form {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 500px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}


/* Firmaoverskrift */
.brand-header {
    text-align: center;
    font-size: 1.8rem;
    color: #2c77d0;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Underrubrik */
.login-box h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.login-box label {
    font-weight: bold;
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
    color: #444;
}

.login-box input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border: none;
    background-color: #2c77d0;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.login-box button:hover {
    background-color: #195aab;
}

/* -- log in side: husk meg presis justering -- */

.remember-me {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.remember-me label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
    white-space: nowrap;   
    max-width: 100%;         
}

.remember-me input[type="checkbox"] {
    transform: scale(1.1);
    margin: 0;
    padding: 0;
}

/* -- log in side: glemt passord -- */

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #2c77d0;
    text-decoration: none;
    font-size: 0.95rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}


/* -- responsiv tilpasning -- */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-image {
        padding: 1rem;
    }

    .login-form {
        padding: 1rem;
    }

    .login-box {
        box-shadow: none;
        padding: 1rem;
    }
}

/* -- auth pages -- */

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
    gap: 0; /* fjernet ekstra luft mellom bilde og boks */
}

.auth-left {
    flex-shrink: 0;
}

.logo-large {
    max-width: 260px;
    height: auto;
    display: block;
}

.auth-box {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    max-width: 420px;
    width: 100%;
    text-align: center;
    z-index: 1;
    position: relative;
}

.btn-primary {
    display: inline-block;
    background-color: #003366;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
}

.auth-box input {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* -- navbar layout -- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #003366;
    color: white;
    padding: 1rem 2rem;
    position: relative;
}

.navbar-left,
.navbar-right {
    display: flex;
    gap: 1.5rem;
}

.navbar-left a,
.navbar-right a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar-left a:hover,
.navbar-right a:hover {
    text-decoration: underline;
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.page-content {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
