/*
// Filename: forms.css
// Directory: /www/css/
// File path: /www/css/forms.css
// Description: Stiler for alle skjema-elementer.
*/

/* --- Login Button (Header) --- */
.login-button {
    background-color: #df7902; /* Din spesifikke farge */
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #f68a0a; /* Din hover-farge */
}

/* --- Login Dropdown --- */
.login-form-container {
    position: absolute;
    top: calc(100% + 15px);
    right: 0; 
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 320px;
    padding: 2rem;
    z-index: 1000;
    
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s ease-out;
}
.login-form-container.is-visible { 
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.login-form-container::before {
    /* Liten pil opp */
    content: "";
    position: absolute;
    top: -6px;
    right: 35px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

.login-form-container label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}
.login-form-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.login-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #df7902; /* Bruker samme oransje her for konsistens */
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.login-submit-btn:hover {
    background-color: #f68a0a;
}

.register-prompt {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* --- Generelle Skjemaer (Registrering/Profil) --- */
.registration-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}
.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}
.btn-full-width { width: 100%; }