:root {
    --color-primary: #0078d4;
    --color-secondary: #6c757d;
    --color-status-success: #28a745;
    --color-status-error: #dc3545;
    --color-status-warning: #856404;
    --color-surface: #ffffff;
    --color-surface-alt: #f5f5f5;
    --color-surface-subtle: #e7f3ff;
    --color-surface-success: #d4edda;
    --color-surface-error: #f8d7da;
    --color-surface-warning: #fff3cd;
    --color-table-row-alt: #f5f5f5;
    --color-table-row-hover: #e1ecf4;
    --color-text: #333333;
    --color-text-muted: #6c757d;
    --color-border: #dddddd;
}
body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--color-surface-alt);
}
.container {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}
h1 {
    color: var(--color-primary);
    margin-bottom: 10px;
}
.subtitle {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 1rem;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--color-text);
}
input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}
.button-group {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
}
button,
.privacy-modal-link {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.2s, border-color 0.2s;
    border: none;
    font-weight: 500;
    text-decoration: none;
}
.btn-validate {
    background-color: var(--color-primary);
    color: #ffffff;
}
.btn-validate:hover {
    background-color: var(--color-primary);
}
.btn-reset {
    background-color: var(--color-secondary);
    color: #ffffff;
}
.btn-reset:hover {
    background-color: var(--color-secondary);
}
.privacy-modal-link {
    display: inline-block;
    color: var(--color-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-primary);
    font-size: 1em;
    padding: 0.45em 1.1em;
    box-shadow: none;
    text-decoration: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
}
.privacy-modal-link:hover,
.privacy-modal-link:focus {
    background: var(--color-surface-subtle);
    color: var(--color-primary);
    border-color: var(--color-primary);
    outline: none;
}
.feedback {
    margin-top: 30px;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}
.feedback.success {
    background-color: var(--color-surface-success);
    border-left-color: var(--color-status-success);
    color: #155724;
}
.feedback.error {
    background-color: var(--color-surface-error);
    border-left-color: var(--color-status-error);
    color: #721c24;
}
.feedback.warning {
    background-color: var(--color-surface-warning);
    border-left-color: var(--color-status-warning);
    color: var(--color-status-warning);
}
.feedback h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.feedback p {
    margin-bottom: 12px;
    line-height: 1.5;
}
.php-info {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--color-surface-subtle);
    border-radius: 4px;
    font-size: 14px;
    color: var(--color-primary);
}
.token-section-separator {
    margin: 20px 0 10px 0;
    padding: 8px 0;
    font-weight: bold;
    font-size: 14px;
    color: var(--color-primary);
    border-bottom: 2px solid #e1ecf4;
    text-align: center;
}
.token-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background-color: rgba(0, 120, 212, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    word-break: break-all;
}
.validation-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: .9em;
}
.validation-results-table th,
.validation-results-table td {
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    text-align: left;
}
.validation-results-table th {
    background-color: var(--color-primary);
    color: #ffffff;
}
.validation-results-table tr:nth-child(even) {
    background-color: var(--color-table-row-alt);
}
.validation-results-table tr:hover {
    background-color: var(--color-table-row-hover);
}
.validation-results-table tr.result-success {
    background-color: var(--color-surface-success);
}
.validation-results-table tr.result-failure {
    background-color: var(--color-surface-error);
}
.validation-results-table tr.result-warning {
    background-color: var(--color-surface-warning);
}
.validation-results-table tr.result-neutral {
    background-color: var(--color-table-row-alt);
}
.result-icon {
    font-size: 1.3em;
    vertical-align: middle;
    margin-right: 6px;
}
.validation-details {
    list-style-type: none;
    padding: 0;
    margin: 15px 0 0;
}
.validation-details li {
    margin-bottom: 8px;
}
.result-type {
    font-weight: bold;
    min-width: 120px;
}
.result-details {
    vertical-align: top;
}
.result-details-separator {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
}
.result-details-type {
    font-weight: bold;
    color: var(--color-primary);
}
.result-details-type-success {
    color: var(--color-status-success);
}
.result-details-type-error {
    color: var(--color-status-error);
}
.result-group-primary {
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
}
.result-type-secondary {
    font-size: 0.9em;
    color: var(--color-text-muted);
}
.gitlab-logo-link {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: 0;
    height: 0;
    border-top: 70px solid rgba(0,0,0,0.18);
    border-left: 70px solid transparent;
    text-decoration: none;
}
.gitlab-logo-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 70px solid rgba(255,255,255,0.08);
    border-left: 70px solid transparent;
}
.gitlab-logo {
    position: absolute;
    top: -60px;
    right: 10px;
    width: 25px;
    height: 25px;
    display: block;
    transform-origin: center;
    transition: transform 0.15s, opacity 0.15s;
}
.gitlab-logo-link:hover .gitlab-logo {
    transform: scale(1.05);
    opacity: 0.96;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.4);
    transition: opacity 0.2s;
}
.modal[aria-hidden="false"] {
    display: block;
}
.modal-content {
    background: var(--color-surface);
    margin: 8vh auto;
    padding: 2rem 2.5rem 2rem 2.5rem;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    position: relative;
    text-align: left;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    line-height: 1;
}
.gitlab-url-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.gitlab-url-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    font-family: monospace;
    font-size: 0.9rem;
}
.btn-copy {
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-copy:hover {
    background: var(--color-primary);
}
.gitlab-url-hint {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
