.fc-wrapper {
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
}

.fc-messages {
    max-height: 480px;
    overflow-y: auto;
    padding: 16px;
    background: #f7f7f8;
}

.fc-message {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.fc-avatar img {
    border-radius: 50%;
    display: block;
}

.fc-body {
    flex: 1;
}

.fc-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.fc-name {
    font-weight: 600;
    color: #222;
}

.fc-time {
    margin-left: 6px;
}

.fc-delete {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    margin-left: 8px;
    padding: 0 2px;
    vertical-align: middle;
}

.fc-delete:hover {
    color: #c0392b;
}

.fc-delete:disabled {
    opacity: 0.4;
    cursor: default;
}

.fc-text {
    font-size: 15px;
    line-height: 1.4;
    color: #222;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.fc-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.fc-form textarea {
    flex: 1;
    resize: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
}

.fc-form button {
    align-self: flex-end;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.fc-form button:hover {
    background: #135e96;
}

.fc-login-hint {
    text-align: center;
    padding: 20px;
    font-size: 15px;
}

.fc-message.fc-new {
    animation: fc-fade-in 0.4s ease-in;
}

@keyframes fc-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Login-Seite ---------- */

.fc-login-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fc-login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.fc-login-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.fc-login-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.fc-login-error {
    background: #fdecea;
    color: #a33;
    border: 1px solid #f3c6c1;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.fc-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #444;
    font-weight: 600;
}

.fc-field input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.fc-field input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.fc-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.fc-login-button {
    display: inline-block;
    text-align: center;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    background: #2271b1;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 4px;
}

.fc-login-button:hover {
    background: #135e96;
}

.fc-login-lost {
    text-align: center;
    margin: 18px 0 0;
    font-size: 13px;
}

.fc-login-lost a {
    color: #2271b1;
    text-decoration: none;
}

.fc-already-in {
    text-align: center;
}
