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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    /* Very light modern background */
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    padding: 48px;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.025em;
}

.subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 32px;
    text-align: center;
}

.alerts {
    margin-bottom: 24px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

input,
textarea {
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

button {
    padding: 12px 16px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

button:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

button:active {
    transform: translateY(0);
}

.footer-text {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 24px;
}

.footer-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #2563eb;
}

.register-container {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    padding: 40px 44px;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
    margin: 0 auto 18px auto;
}

.info-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.credential-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    text-align: left;
}

.credential-item {
    margin-bottom: 12px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.credential-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-all;
}

.password-display-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.password-display-row input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    background: #ffffff;
    color: #0f172a;
    border: 2px dashed #3b82f6;
    padding: 10px 14px;
}

.btn-copy {
    padding: 10px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-copy:hover {
    background: #2563eb;
}

.btn-primary-action {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px 16px;
    background: #0f172a;
    color: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.btn-primary-action:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

@media (max-width: 480px) {

    .login-container,
    .register-container {
        padding: 32px 24px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    body {
        background-color: #ffffff;
    }

    h2 {
        font-size: 26px;
    }
}