/* =========================================================
   LOGIN.HTML - SLOTSGADE IDENTITET
========================================================= */

body {
    background-color: rgba(0,0,0,0.45);
    background-image: url("../billeder/toon.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: color-dodge;
    background-position: bottom;
    background-attachment: fixed;
    padding: 120px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.header {
    background: var(--primary-blue);
    color: white;
    padding: 32px 24px;
    text-align: center;
    margin: -20px -20px 0 -20px;
    border-radius: 12px 12px 0 0;
}

.header h1 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    color: #666;
}

.tab:hover {
    background: #e8e8e8;
    color: #333;
}

.tab.active {
    background: white;
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.content {
    padding: 32px 28px;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' width='20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,12'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

.btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn:hover {
    background: #003a7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 68, 148, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e8e8e8;
    box-shadow: none;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.message.show {
    display: block;
}

.back-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.back-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #003a7a;
    text-decoration: underline;
}

.forgot-link {
    text-align: center;
    margin-top: 16px;
}

.forgot-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-link a:hover {
    color: #003a7a;
    text-decoration: underline;
}

/* Forgot Password Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.show,
.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin: 0 0 16px 0;
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-content input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-family: inherit;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.modal-content .btn {
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-content .message {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 60px 16px;
    }

    .container {
        max-width: 100%;
    }

    .content {
        padding: 24px 20px;
    }

    .header {
        padding: 24px 20px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 24px;
    }
}