* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.card {
    background: #161616;
    border: 0.5px solid #2a2a2a;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Header */
.logo-text {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #cccccc;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.divider {
    height: 0.5px;
    background: #1f1f1f;
}

/* Advarselsboks */
.warning-box {
    background: #1a1400;
    border: 0.5px solid #3a3000;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.warning-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #ffcc00;
}

.warning-text {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.6;
	text-align: center;
}

.warning-text strong {
    color: #aa9030;
}

/* Grid-wrapper som holder høyden stabil */
.password-wrapper {
    display: grid;
}

.password-wrapper > * {
    grid-column: 1;
    grid-row: 1;
    transition: opacity 0.2s;
}

/* Vis passord-seksjon */
.reveal-section {
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: stretch;
}

.reveal-section.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Vis passord-knapp */
.reveal-btn {
    display: block;
    width: 100%;
    background: #2a2200;
    border: 1px solid #ffcc00;
    color: #ffcc00;
    font-size: 20px;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.reveal-btn:hover {
    background: #ffcc00;
    color: #0a0a0a;
}

/* Passord-visning */
.password-box {
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.password-box.visible {
    opacity: 1;
    pointer-events: auto;
}

.password-display {
    background: #1a1600;
    border: 1px solid #ffcc00;
    border-radius: 10px;
    padding: 20px 16px;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
    width: 100%;
    text-align: center;
}

.password-display:hover {
    background: #221e00;
}

.password-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    color: #ffffff;
    word-break: break-all;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

.copy-hint {
    font-size: 12px;
    color: #888888;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.copied-badge {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffcc00;
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.copied-badge.show {
    display: block;
}

/* Ikke tilgjengelig */
.unavailable {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.unavailable-icon {
    font-size: 32px;
    color: #444;
}

.unavailable-title {
    font-size: 18px;
    color: #888;
}

.unavailable-sub {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 12px;
    color: #888888;
    line-height: 1.8;
}

.footer a {
    color: #888888;
    text-decoration: none;
}

.footer a:hover {
    color: #aaaaaa;
}