/* =========================================
   LOGIN.CSS - Design för inloggningssidan
   ========================================= */

/* Huvudcontainer för vyn */
.login-view {
    background-color: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Wrapper för att centrera och begränsa bredd */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
}

/* Det vita kortet */
.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

/* --- LOGOTYP & RUBRIKER --- */

.logo-container {
    width: 80px;
    height: 80px;
    background: rgba(2, 119, 189, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.strul-logo-svg {
    width: 48px;
    height: 48px;
    stroke: #0277bd;
    stroke-width: 1.5;
}

.strul-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #1a202c;
    letter-spacing: -1px;
    text-align: center;
    line-height: 1.2;
}

/* Wrapper för att kunna positionera version-taggen */
.title-text-wrapper {
    position: relative;
    display: inline-block;
}

.version-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a0aec0;
    letter-spacing: 0;
    position: absolute;
    left: 100%;
    bottom: 8px;
    margin-left: 8px;
    white-space: nowrap;
}

.strul-desc {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- FORMULÄR --- */

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.input-group input:focus {
    border-color: #0277bd;
}

/* --- KNAPPAR --- */

.action-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
    text-align: center;
}

.action-btn:active {
    transform: scale(0.98);
}

/* Primär knapp (Blå - Logga in) */
.action-btn.primary {
    background-color: #0277bd;
    color: white;
    box-shadow: 0 4px 12px rgba(2, 119, 189, 0.3);
    margin-bottom: 15px;
}
.action-btn.primary:hover {
    background-color: #026cae;
}

/* Sekundär knapp (Ljusgrå - Display) */
.action-btn.secondary {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}
.action-btn.secondary:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

/* --- ÖVRIGT --- */

/* Avdelare (Streck med text) */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 600;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 10px;
}

/* Länkar (Glömt lösenord etc) */
.link-text {
    color: #0277bd;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
}

.link-text:hover {
    text-decoration: underline;
}

/* Dölj glömt-lösenord-formuläret som standard */
#forgotForm {
    display: none;
}

/* --- TOAST NOTIFICATION (Ny för index) --- */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}
